system/tasks/pacman.yml
vincent 35e5b08949
Some checks failed
continuous-integration/drone/push Build is failing
test with molecule
2022-10-09 19:43:15 +02:00

34 lines
1.0 KiB
YAML

---
- name: Configure pacman color
replace: dest=/etc/pacman.conf regexp="^#(Color)" replace="\1"
become: true
- name: Configure more pacman visuals
replace: dest=/etc/pacman.conf regexp="#(VerbosePkgLists)" replace="\1\nILoveCandy"
become: true
- name: Configure pacman multilib repo
become: true
replace: dest=/etc/pacman.conf regexp="^#(\[multilib\])\n^#(.*)$" replace="\1\n\2"
notify: Update_pacman_repos
when: ansible_architecture == "x86_64"
- name: add local repo to mirrorlist
become: true
lineinfile:
path: /etc/pacman.d/mirrorlist
line: "Server= {{ system_arch_local_mirror }}/repo/archlinux_$arch/$repo/os/$arch"
state: present
insertbefore: BOF
when: system_arch_local_mirror
- name: stat ca-certificates
stat:
path: "/etc/ssl/certs/ca-certificates.crt" # required. The full path of the file/object to get the facts of.
register: cacertificates
- name: reinstall certificate for old system
command: "pacman -Sy ca-certificates-utils openssl --noconfirm"
become: true
when: not cacertificates.stat.exists