toansible: Finish adding pacman.conf
This commit is contained in:
parent
b4aa028fff
commit
463fdfee6a
2 changed files with 29 additions and 8 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue