35 lines
850 B
YAML
Raw Normal View History

2023-02-13 23:52:47 +01:00
- name: Backup blacklist
fetch:
src: /etc/sentinel/blacklist
dest: blacklist
when: script is not defined or script == "blacklist"
tags: [ "backup" ]
2023-02-12 21:44:19 +01:00
- name: Deconfigure stats script
import_tasks: deconfigure_stats.yml
2023-02-12 22:28:32 +01:00
when: script is not defined or script == "stats"
2023-02-12 21:44:19 +01:00
- name: Deconfigure blacklist script
import_tasks: deconfigure_blacklist.yml
2023-02-12 22:28:32 +01:00
when: script is not defined or script == "blacklist"
2023-02-12 21:44:19 +01:00
- name: Deconfigure supervision script
import_tasks: deconfigure_supervision.yml
2023-02-12 22:28:32 +01:00
when: script is not defined or script == "supervision"
2023-02-12 21:44:19 +01:00
2023-02-12 22:28:32 +01:00
- name: Remove sentinel directory
2023-02-12 21:44:19 +01:00
file:
state: absent
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