templier-ansible/roles/pacman/tasks/main.yml

29 lines
520 B
YAML
Raw Normal View History

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