system/tasks/pacman.yml
vincent e592b3833b
Some checks failed
continuous-integration/drone/push Build is failing
fix arch mirror path
2022-11-13 15:56:28 +01: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/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