Add cleanup to update oneshot playbook

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:25 -04:00
parent 1f6cb077fa
commit f34b2a5f7e
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,13 @@
autoremove: "yes" autoremove: "yes"
autoclean: "yes" autoclean: "yes"
upgrade: "full" upgrade: "full"
- name: clean up obsolete kernels
command: "/usr/local/sbin/kernel-cleanup.sh"
- name: clean up obsolete packages
command: "/usr/local/sbin/dpkg-cleanup.sh"
- name: clean apt archives - name: clean apt archives
file: file:
dest: "/var/cache/apt/archives" dest: "/var/cache/apt/archives"