Kapisi/roles/Maat/tasks/main.yml

59 lines
1.0 KiB
YAML
Raw Permalink Normal View History

---
2023-02-22 22:33:58 -06:00
- name: Maat packages
become: yes
package:
name:
2023-02-22 22:33:58 -06:00
- Maat
2023-11-30 02:47:16 -06:00
- pacoloco
2023-02-22 22:33:58 -06:00
- name: makepkg.conf configuration
become: yes
template:
src: makepkg.conf.j2
dest: /etc/makepkg.conf
owner: root
group: root
mode: 0644
2023-02-22 22:33:58 -06:00
- name: Maat configuration
become: yes
2024-04-05 13:16:42 -05:00
register: aurlist
2023-02-22 22:33:58 -06:00
copy:
src: aur.list
dest: /usr/local/etc/Maat/aur.list
- name: Maat service
become: yes
service:
name: maat.timer
state: restarted
enabled: yes
2023-11-30 02:47:16 -06:00
2024-04-05 13:16:42 -05:00
- name: Start Maat build cycle
become: yes
when: aurlist.changed
service:
name: maat.service
state: started
2023-11-30 02:47:16 -06:00
- 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