added os-update playbook for debian
This commit is contained in:
11
roles/os-updates/handlers/main.yml
Normal file
11
roles/os-updates/handlers/main.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
- name: apt cleanup
|
||||
apt:
|
||||
clean: yes
|
||||
autoclean: yes
|
||||
|
||||
- name: Reboot system
|
||||
command: /sbin/reboot
|
||||
async: 1
|
||||
poll: 0
|
||||
ignore_errors: true
|
||||
when: reboot_required.stdout == "yes"
|
||||
Reference in New Issue
Block a user