Move autoremove into its own task on the common role

This commit is contained in:
Salt 2021-09-01 19:16:05 -05:00
parent c299e505cf
commit 6aef1be67b

View File

@ -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"