system/tasks/pacman.yml

26 lines
810 B
YAML
Raw Normal View History

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
- 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