aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/pacman/tasks/main.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2025-04-07 17:11:57 +0200
committerRomain Gonçalves <me@rgoncalves.se>2025-04-07 17:11:57 +0200
commit7da9fda6db8e9fce02ba0f7871c75b3938f72d92 (patch)
tree8da071c85a33715a7996021af2faec1a03888b24 /roles/_workstation/pacman/tasks/main.yml
parente6c5924c8a5250d00dd5e89ca31c21490bf3face (diff)
downloadrules-7da9fda6db8e9fce02ba0f7871c75b3938f72d92.tar.gz
feat(roles/_workstation): add paccache hookHEADtrunk
Diffstat (limited to 'roles/_workstation/pacman/tasks/main.yml')
-rw-r--r--roles/_workstation/pacman/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/_workstation/pacman/tasks/main.yml b/roles/_workstation/pacman/tasks/main.yml
new file mode 100644
index 0000000..7086eae
--- /dev/null
+++ b/roles/_workstation/pacman/tasks/main.yml
@@ -0,0 +1,20 @@
+---
+
+- name: install pacman-contrib
+ ansible.builtin.package:
+ name: pacman-contrib
+ state: present
+
+- name: create hooks directory
+ ansible.builtin.file:
+ path: "{{ pacman_hooks_dir }}"
+ state: directory
+ mode: "0755"
+
+- name: generate paccache hook
+ ansible.builtin.template:
+ src: paccache.hook.j2
+ dest: "{{ pacman_hooks_dir }}/paccache.hook"
+ owner: 0
+ group: 0
+ mode: "0644"
remember that computers suck.