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