summaryrefslogtreecommitdiffstats
path: root/cleanup-apt
diff options
context:
space:
mode:
authorJonathan Bauer2021-05-19 10:14:41 +0200
committerJonathan Bauer2021-05-19 10:14:41 +0200
commit6dc74f1916e60a507ed6da7097a96fa747a63500 (patch)
tree43b2b80297941cf19eebaeaf7ce8628648220f7d /cleanup-apt
parent[mltk-*] update core mltk roles (diff)
downloadansible-bwlp-6dc74f1916e60a507ed6da7097a96fa747a63500.tar.gz
ansible-bwlp-6dc74f1916e60a507ed6da7097a96fa747a63500.tar.xz
ansible-bwlp-6dc74f1916e60a507ed6da7097a96fa747a63500.zip
[cleanup-*] cleanup roles for apt and systemd
Diffstat (limited to 'cleanup-apt')
-rw-r--r--cleanup-apt/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/cleanup-apt/tasks/main.yml b/cleanup-apt/tasks/main.yml
new file mode 100644
index 0000000..7618ab3
--- /dev/null
+++ b/cleanup-apt/tasks/main.yml
@@ -0,0 +1,8 @@
+---
+- name: apt | Remove dependencies that are no longer required
+ apt:
+ autoremove: yes
+
+# https://github.com/ansible/ansible/issues/38920
+- name: apt | Clean package cache
+ command: apt-get clean