setup-cockpit/roles/pacman/tasks/main.yml

44 lines
1,001 B
YAML

---
- fail:
when: ansible_distribution != 'Archlinux'
- name: Set confs for pacman
become: true
block:
- name: Set HookDir
replace:
path: /etc/pacman.conf
regexp: "#HookDir"
replace: HookDir
backup: true
- name: Set Color
replace:
path: /etc/pacman.conf
regexp: "#Color"
replace: Color
backup: true
- name: Set TotalDownload
replace:
path: /etc/pacman.conf
regexp: "#TotalDownload"
replace: TotalDownload
backup: true
- name: Set CheckSpace
replace:
path: /etc/pacman.conf
regexp: "#CheckSpace"
replace: CheckSpace
backup: true
- name: Set VerbosePkgLists
replace:
path: /etc/pacman.conf
regexp: "#VerbosePkgLists"
replace: VerbosePkgLists
backup: true
- name: Make sure hooks directory exists
become: true
file:
path: /etc/pacman.d/hooks
state: directory
mode: 0755