34 lines
1.1 KiB
YAML
34 lines
1.1 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 is defined
|
|
|
|
- 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
|