mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-03-07 18:26:23 +01:00
This allows us to have service specific rules with a general config file. Signed-off-by: Christian Heusel <christian@heusel.eu>
20 lines
689 B
YAML
20 lines
689 B
YAML
- name: Install anubis
|
|
pacman: name=anubis state=present
|
|
|
|
- name: Install anubis configuration
|
|
copy: src=default.env dest=/etc/anubis/ owner=root group=root mode=644
|
|
notify: Restart anubis
|
|
|
|
- name: Install anubis bot policies
|
|
template: src=botPolicies.yaml.j2 dest=/etc/anubis/botPolicies.default.yaml owner=root group=root mode=644
|
|
notify: Restart anubis
|
|
|
|
- name: Install anubis bot policy dropins
|
|
copy: src={{ item }}.yaml dest=/etc/anubis/{{ item }}.yaml owner=root group=root mode=644
|
|
notify: Restart anubis
|
|
when: anubis_extra_rules is defined
|
|
loop: "{{ anubis_extra_rules }}"
|
|
|
|
- name: Start and enable anubis
|
|
service: name=anubis@default enabled=yes state=started
|