Kapisi/roles/Maat/tasks/main.yml

51 lines
889 B
YAML

---
- name: Maat packages
become: yes
package:
name:
- Maat
- pacoloco
- name: makepkg.conf configuration
become: yes
template:
src: makepkg.conf.j2
dest: /etc/makepkg.conf
owner: root
group: root
mode: 0644
- name: Maat configuration
become: yes
copy:
src: aur.list
dest: /usr/local/etc/Maat/aur.list
- name: Maat service
become: yes
service:
name: maat.timer
state: restarted
enabled: yes
- name: Generate mirrorlist
delegate_to: localhost
run_once: yes
command: "bash ../bin/generate-mirrorlist"
- name: Copy pacoloco config
become: yes
copy:
src: pacoloco.yaml
dest: /etc/pacoloco.yaml
owner: root
group: root
mode: 0755
- name: Start pacoloco service
become: yes
service:
name: pacoloco
state: restarted
enabled: yes