toansible: Finish adding pacman.conf

This commit is contained in:
flyingscorpio@arch-desktop 2022-02-21 23:15:25 +01:00
parent b4aa028fff
commit 463fdfee6a
2 changed files with 29 additions and 8 deletions

View file

@ -10,14 +10,6 @@ sudoers:
- run:
- sudo chmod 600 /etc/sudoers.d/setup-cockpit
pacman.conf:
- run:
- sudo sed -i 's/#HookDir/HookDir/' /etc/pacman.conf &&
sudo sed -i 's/#Color/Color/' /etc/pacman.conf &&
sudo sed -i 's/#TotalDownload/TotalDownload/' /etc/pacman.conf &&
sudo sed -i 's/#CheckSpace/CheckSpace/' /etc/pacman.conf &&
sudo sed -i 's/#VerbosePkgLists/VerbosePkgLists/' /etc/pacman.conf
grub:
- install:
arch:

View file

@ -15,3 +15,32 @@
dest: /etc/pacman.conf.backup
remote_src: yes
when: not pacmanconf.stat.exists
- name: Set confs for pacman
become: true
block:
- name: Set HookDir
replace:
path: /etc/pacman.conf
regexp: "#HookDir"
replace: HookDir
- name: Set Color
replace:
path: /etc/pacman.conf
regexp: "#Color"
replace: Color
- name: Set TotalDownload
replace:
path: /etc/pacman.conf
regexp: "#TotalDownload"
replace: TotalDownload
- name: Set CheckSpace
replace:
path: /etc/pacman.conf
regexp: "#CheckSpace"
replace: CheckSpace
- name: Set VerbosePkgLists
replace:
path: /etc/pacman.conf
regexp: "#VerbosePkgLists"
replace: VerbosePkgLists