This commit is contained in:
@@ -13,13 +13,7 @@
|
||||
state: latest
|
||||
update_cache: yes
|
||||
only_upgrade: yes
|
||||
register: apt_update_status
|
||||
|
||||
- name: Remove packages not needed anymore
|
||||
ansible.builtin.apt:
|
||||
autoremove: yes
|
||||
|
||||
- name: Reboot when packages were updated
|
||||
ansible.builtin.reboot:
|
||||
post_reboot_delay: 60
|
||||
when: apt_update_status.changed
|
||||
autoremove: yes
|
||||
Reference in New Issue
Block a user