templier-ansible/roles/pacman/tasks/main.yml
Yohann D'ANELLO bfbb228d12
Add pacman role
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-03-21 01:43:12 +01:00

29 lines
520 B
YAML

---
- name: Ensure pacman is installed
package:
name:
- pacman
register: pkg_result
retries: 3
until: pkg_result is succeeded
- name: Use Crans mirror
template:
src: pacman.d/mirrorlist.j2
dest: /etc/pacman.d/mirrorlist
owner: root
group: root
mode: 0644
- name: Enable colors and sugar
lineinfile:
regex: "{{ item }}"
line: "{{ item }}"
insertafter: "[options]"
path: /etc/pacman.conf
loop:
- Color
- TotalDownload
- CheckSpace
- ILoveCandy