Add cleanup to update oneshot playbook

This commit is contained in:
Joshua Boniface 2021-02-02 12:34:47 -05:00
parent ca3a5e144f
commit 510db0df58
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,13 @@
autoremove: "yes"
autoclean: "yes"
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
file:
dest: "/var/cache/apt/archives"