cleanup and descritive README
This commit is contained in:
parent
ed40c478e9
commit
44e8e027e4
24 changed files with 1605 additions and 2 deletions
17
ansible/roles/updates/handlers/main.yml
Executable file
17
ansible/roles/updates/handlers/main.yml
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Reboot host
|
||||
block:
|
||||
- name: Rebooting
|
||||
ansible.builtin.reboot:
|
||||
reboot_timeout: 1200
|
||||
test_command: uptime
|
||||
register: reboot_result
|
||||
- name: Wait for host to come back online
|
||||
ansible.builtin.wait_for_connection:
|
||||
delay: 10
|
||||
timeout: 1800
|
||||
when: reboot_result is changed
|
||||
- name: Restart docker to kill Zombies
|
||||
ansible.builtin.systemd_service:
|
||||
name: docker
|
||||
state: restarted
|
||||
Loading…
Add table
Add a link
Reference in a new issue