32 lines
715 B
YAML

- name: Backup blacklist
fetch:
src: /etc/sentinel/blacklist
dest: blacklist
tags: [ "backup_balcklist" ]
- name: Deconfigure stats script
import_tasks: deconfigure_stats.yml
tags: [ "deconfigure_stats" ]
- name: Deconfigure blacklist script
import_tasks: deconfigure_blacklist.yml
tags: [ "deconfigure_blacklist" ]
- name: Deconfigure supervision script
import_tasks: deconfigure_supervision.yml
tags: [ "deconfigure_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 }}"