Remove verbose for pacman hook paccache, use fileglob for the copy
This commit is contained in:
parent
b0d46fe81c
commit
81a4c0a225
6 changed files with 19 additions and 7 deletions
|
@ -8,5 +8,5 @@ Target = *
|
|||
[Action]
|
||||
Description = Cleaning the pacman cache...
|
||||
When = PostTransaction
|
||||
Exec = /usr/bin/paccache -rvk2
|
||||
Exec = /usr/bin/paccache -rk2
|
||||
Depends = pacman-contrib
|
12
roles/pacman/files/hooks/paccache_uninstalled.hook
Normal file
12
roles/pacman/files/hooks/paccache_uninstalled.hook
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Trigger]
|
||||
Operation = Install
|
||||
Operation = Upgrade
|
||||
Operation = Remove
|
||||
Type = Package
|
||||
Target = *
|
||||
|
||||
[Action]
|
||||
Description = Cleaning the pacman cache for uninstalled packages...
|
||||
When = PostTransaction
|
||||
Exec = /usr/bin/paccache -urk0
|
||||
Depends = pacman-contrib
|
|
@ -46,9 +46,9 @@
|
|||
|
||||
- name: Copy hooks
|
||||
become: true
|
||||
ansible.builtin.copy: src={{ item.src }} dest={{ item.dest }} mode=0644 backup=true
|
||||
with_items:
|
||||
- {src: 'new_orphan.hook', dest: '/etc/pacman.d/hooks/new_orphan.hook'}
|
||||
- {src: 'pacdiff.hook', dest: '/etc/pacman.d/hooks/pacdiff.hook'}
|
||||
- {src: 'mirrorupgrade.hook', dest: '/etc/pacman.d/hooks/mirrorupgrade.hook'}
|
||||
- {src: 'paccache.hook', dest: '/etc/pacman.d/hooks/paccache.hook'}
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/pacman.d/hooks/
|
||||
mode: 0644
|
||||
with_fileglob:
|
||||
- hooks/*
|
||||
|
|
Loading…
Add table
Reference in a new issue