added os-update playbook for debian

This commit is contained in:
Ansible Servercow
2024-11-22 22:03:31 +01:00
parent ba83e096b8
commit da473e67ff
8 changed files with 123 additions and 0 deletions

View 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"