autoremove apt packages after upgrades
This commit is contained in:
parent
8fb44f13ce
commit
c28d7706a3
2 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Role `apt_update_and_upgrade`
|
||||
|
||||
This role does an `apt-get update`, `apt-get dist-upgrade` and a potential reboot (if packages got upgraded) on the specified hosts.
|
||||
This role does an `apt-get update`, `apt-get dist-upgrade`, `apt-get autoremove` and a potential reboot (if packages got upgraded) on the specified hosts.
|
||||
|
||||
## `hosts`
|
||||
|
||||
|
|
|
|||
|
|
@ -11,3 +11,7 @@
|
|||
register: apt_update_and_upgrade__upgrade_result
|
||||
notify:
|
||||
- reboot the system
|
||||
|
||||
- name: Remove dependencies that are no longer required
|
||||
ansible.builtin.apt:
|
||||
autoremove: true
|
||||
|
|
|
|||
Loading…
Reference in a new issue