2018-12-02 20:03:03 +00:00
|
|
|
---
|
|
|
|
- name: Configure pacman color
|
2022-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.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
|
2022-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.replace:
|
|
|
|
dest: /etc/pacman.conf
|
|
|
|
regexp: "#(VerbosePkgLists)"
|
2023-01-29 10:29:00 +00:00
|
|
|
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
|
2022-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.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
|
|
|
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Add local repo to mirrorlist
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2022-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.lineinfile:
|
2020-12-14 19:23:01 +00:00
|
|
|
path: /etc/pacman.d/mirrorlist
|
2022-11-13 14:56:28 +00:00
|
|
|
line: "Server= {{ system_arch_local_mirror }}/$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
|
|
|
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Stat ca-certificates
|
|
|
|
ansible.builtin.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
|
|
|
|
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Reinstall certificate for old system
|
|
|
|
ansible.builtin.command: "pacman -Sy ca-certificates-utils openssl --noconfirm"
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
|
|
|
when: not cacertificates.stat.exists
|