Kapisi/roles/Maat/tasks/main.yml

59 lines
1.0 KiB
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
register: aurlist
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: Start Maat build cycle
become: yes
when: aurlist.changed
service:
name: maat.service
state: started
- 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