2018-12-02 20:03:03 +00:00
|
|
|
---
|
|
|
|
- name: Configure pacman color
|
|
|
|
replace: dest=/etc/pacman.conf regexp="^#(Color)" replace="\1"
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2019-01-08 21:04:00 +00:00
|
|
|
|
2018-12-02 20:03:03 +00:00
|
|
|
- name: Configure more pacman visuals
|
|
|
|
replace: dest=/etc/pacman.conf regexp="#(VerbosePkgLists)" replace="\1\nILoveCandy"
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2019-01-08 21:04:00 +00:00
|
|
|
|
2018-12-02 20:03:03 +00:00
|
|
|
- name: Configure pacman multilib repo
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2018-12-02 20:03:03 +00:00
|
|
|
replace: dest=/etc/pacman.conf regexp="^#(\[multilib\])\n^#(.*)$" replace="\1\n\2"
|
2019-01-08 21:04:00 +00:00
|
|
|
notify: Update_pacman_repos
|
2018-12-02 20:03:03 +00:00
|
|
|
when: ansible_architecture == "x86_64"
|
2019-01-08 21:04:00 +00:00
|
|
|
|
2020-12-14 19:23:01 +00:00
|
|
|
- name: add local repo to mirrorlist
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
|
|
|
lineinfile:
|
2020-12-14 19:23:01 +00:00
|
|
|
path: /etc/pacman.d/mirrorlist
|
2022-05-10 06:31:26 +00:00
|
|
|
line: "Server= {{ system_arch_local_mirror }}/repo/archlinux_$arch/$repo/os/$arch"
|
2020-12-14 19:23:01 +00:00
|
|
|
state: present
|
|
|
|
insertbefore: BOF
|
2022-10-09 17:43:15 +00:00
|
|
|
when: system_arch_local_mirror
|
2020-12-14 19:23:01 +00:00
|
|
|
|
2019-01-08 21:04:00 +00:00
|
|
|
- name: stat ca-certificates
|
|
|
|
stat:
|
2022-02-13 08:40:15 +00:00
|
|
|
path: "/etc/ssl/certs/ca-certificates.crt" # required. The full path of the file/object to get the facts of.
|
2019-01-08 21:04:00 +00:00
|
|
|
register: cacertificates
|
|
|
|
|
|
|
|
- name: reinstall certificate for old system
|
|
|
|
command: "pacman -Sy ca-certificates-utils openssl --noconfirm"
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
|
|
|
when: not cacertificates.stat.exists
|