Debian/Ubuntu: autoclean and autoremove packages when dist-upgrading.

This commit is contained in:
Andrea Dell'Amico 2019-11-21 18:13:06 +01:00
parent 58e596ed5d
commit 32695a0a33
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
---
- name: Dist upgrade, if requested
apt: upgrade=dist update_cache=yes cache_valid_time=1800
apt: upgrade=dist update_cache=yes cache_valid_time=1800 autoclean=yes autoremove=yes
when: dist_upgrade
tags: [ 'packages', 'upgrade', 'dist_upgrade' ]