From 32695a0a3304f7cccfbc764e03519ace26acd7e5 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 21 Nov 2019 18:13:06 +0100 Subject: [PATCH] Debian/Ubuntu: autoclean and autoremove packages when dist-upgrading. --- library/roles/ubuntu-deb-general/tasks/dist-upgrade.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/roles/ubuntu-deb-general/tasks/dist-upgrade.yml b/library/roles/ubuntu-deb-general/tasks/dist-upgrade.yml index 2be56a8c..400bcae5 100644 --- a/library/roles/ubuntu-deb-general/tasks/dist-upgrade.yml +++ b/library/roles/ubuntu-deb-general/tasks/dist-upgrade.yml @@ -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' ]