Clear pacman cache

This commit is contained in:
Jake Howard
2022-11-14 09:04:53 +00:00
parent 77e83fec6d
commit 330e7e9305
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,18 @@
- name: Install Pacman utils
package:
name: pacman-contrib
become: true
- name: Create hooks directory
file:
path: /etc/pacman.d/hooks/
state: directory
mode: "0755"
become: true
- name: Install pacman hook
template:
src: files/paccache.hook
dest: /etc/pacman.d/hooks/clean_package_cache.hook
mode: "0644"
become: true