2018-12-02 20:03:03 +00:00
|
|
|
---
|
|
|
|
- name: Configure pacman color
|
|
|
|
replace: dest=/etc/pacman.conf regexp="^#(Color)" replace="\1"
|
|
|
|
become: yes
|
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"
|
|
|
|
become: yes
|
2019-01-08 21:04:00 +00:00
|
|
|
|
2018-12-02 20:03:03 +00:00
|
|
|
- name: Configure pacman multilib repo
|
|
|
|
become: yes
|
|
|
|
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
|
|
|
|
become: yes
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/pacman.d/mirrorlist
|
|
|
|
line: "Server= {{system_arch_local_mirror}}/$repo/os/$arch"
|
|
|
|
state: present
|
|
|
|
insertbefore: BOF
|
|
|
|
when: system_arch_local_mirror is defined
|
|
|
|
|
2019-01-08 21:04:00 +00:00
|
|
|
- name: stat ca-certificates
|
|
|
|
stat:
|
2019-01-27 19:10:48 +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"
|
|
|
|
become: yes
|
|
|
|
when: not cacertificates.stat.exists
|