28 lines
644 B
YAML
Raw Normal View History

2023-02-12 21:25:57 +01:00
- name: Create sentinel directory
file:
state: directory
path: "{{ item }}/sentinel"
with_items:
- /usr/local/bin
- /etc
vars:
ansible_become: yes
ansible_become_method: sudo
ansible_become_password: "{{ sudo_password }}"
2023-02-12 22:28:32 +01:00
when: script is not defined
2023-02-12 21:25:57 +01:00
2023-02-12 18:13:05 +01:00
- name: Deploy stats script
import_tasks: stats.yml
2023-02-12 22:28:32 +01:00
when: script is not defined or script == "stats"
2023-02-12 18:13:05 +01:00
- name: Configure blacklist script
import_tasks: blacklist.yml
2023-02-12 22:28:32 +01:00
when: script is not defined or script == "blacklist"
2023-02-12 18:13:05 +01:00
- name: Configure supervision script
import_tasks: supervision.yml
2023-02-12 22:28:32 +01:00
when: script is not defined or script == "supervision"