REFACTOR: add maintenance roles doing configs stuff and system updates, add dependencies for neovim in base system
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
- name: Internet connection test block
|
||||
block:
|
||||
- name: Test reachability to ya.ru
|
||||
become: true # Usually it's not necessary, but sometimes there are some wierd issues with ping, especially on Alpine
|
||||
become: true # Usually it's not necessary, but sometimes ping is disabled for non-root by default
|
||||
ansible.builtin.shell: ping -c 5 ya.ru > /dev/null
|
||||
changed_when: false # This task does not change the system
|
||||
|
||||
@@ -21,9 +21,10 @@
|
||||
block:
|
||||
- name: Test free disk space in root
|
||||
become: false
|
||||
# We have to use this complicated pipeline because of Alpine and its wierd df implementation
|
||||
ansible.builtin.shell: set -o pipefail && df -h / | tail -1 | awk '{gsub(/%/, "", $5); print $5}'
|
||||
register: common_healthcheck_result
|
||||
failed_when: common_healthcheck_result.stdout | int > 85
|
||||
register: free_disk_space_result
|
||||
failed_when: free_disk_space_result.stdout | int > 85
|
||||
changed_when: false # This task does not change the system
|
||||
|
||||
rescue:
|
||||
|
||||
Reference in New Issue
Block a user