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
|
- name: configure packages via apt
|
||||||
block:
|
block:
|
||||||
- name: update apt packages
|
- 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
|
- name: install basic packages
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
@ -34,4 +34,6 @@
|
|||||||
- whois
|
- whois
|
||||||
- name: remove basic packages
|
- name: remove basic packages
|
||||||
apt: state=absent name=unattended-upgrades
|
apt: state=absent name=unattended-upgrades
|
||||||
|
- name: autoremove
|
||||||
|
apt: autoremove=yes
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
|
Loading…
Reference in New Issue
Block a user