git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2020-04-30 11:50:08 +0200
committerHarald Pfeiffer <coding _ lirion.de> 2020-04-30 11:50:08 +0200
commit33f4a4495a25967233e5039d4edd6e8c04a8f9f6 (patch)
tree4e60814ee7d74b06a50f3cff616c90746b2d9ba7
parenta79aa7e9dc51b85442722b830e66007473b5ff2f (diff)
downloadansible-33f4a4495a25967233e5039d4edd6e8c04a8f9f6.tar.bz2
+apt cache cleanup before actionsHEADmaster
-rw-r--r--apt-upgrade.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/apt-upgrade.yml b/apt-upgrade.yml
index 691c9b5..8ecafb7 100644
--- a/apt-upgrade.yml
+++ b/apt-upgrade.yml
@@ -26,6 +26,13 @@
# update_cache: yes
# become: true
# delegate_to: acng
+ - name: Clean packages cache prior to apt actions
+ # since we are using this playbook also on systems where the disk space has
+ # been narrowly tailored to their usage (e.g. self-implemented firewall VMs),
+ # we will try to not overuse /var/cache/apt :-)
+ # For now: command. Once the apt module is able to do that, we will shift.
+ command: apt clean
+ become: true
- name: Update apt cache
apt:
update_cache: yes
@@ -41,8 +48,6 @@
path: /usr/bin/rkhunter
register: rkhex
ignore_errors: true
- when:
- - aptout.stdout != ""
- name: rkhunter pre-check
command: rkhunter -c --sk --rwo --ns
become: true