Move autoremove into its own task on the common role
This commit is contained in:
parent
c299e505cf
commit
6aef1be67b
@ -3,7 +3,7 @@
|
||||
- name: configure packages via apt
|
||||
block:
|
||||
- name: update apt packages
|
||||
apt: upgrade=yes autoremove=yes update_cache=yes cache_valid_time=86400
|
||||
apt: upgrade=yes update_cache=yes cache_valid_time=86400
|
||||
- name: install basic packages
|
||||
apt:
|
||||
name:
|
||||
@ -34,4 +34,6 @@
|
||||
- whois
|
||||
- name: remove basic packages
|
||||
apt: state=absent name=unattended-upgrades
|
||||
- name: autoremove
|
||||
apt: autoremove=yes
|
||||
when: ansible_os_family == "Debian"
|
||||
|
Loading…
Reference in New Issue
Block a user