30 lines
688 B
YAML

- name: Deconfigure stats script
import_tasks: deconfigure_stats.yml
when: script is not defined or script == "stats"
- name: Deconfigure blacklist script
import_tasks: deconfigure_blacklist.yml
when: script is not defined or script == "blacklist"
- name: Deconfigure supervision script
import_tasks: deconfigure_supervision.yml
when: script is not defined or script == "supervision"
- name: Remove sentinel directory
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 }}"
when: script is not defined