add deconfigure tasks
This commit is contained in:
parent
98ee7045f6
commit
c22d70bcdd
28
roles/deploy-web/tasks/deconfigure.yml
Normal file
28
roles/deploy-web/tasks/deconfigure.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- 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 }}"
|
||||||
|
tags: [ "deconfigure", "stats", "blacklist", "supervision"]
|
@ -9,4 +9,8 @@
|
|||||||
|
|
||||||
- name: Destrpy project web
|
- name: Destrpy project web
|
||||||
import_tasks: destroy.yml
|
import_tasks: destroy.yml
|
||||||
tags: ["destroy"]
|
tags: ["destroy"]
|
||||||
|
|
||||||
|
- name: Configure project web
|
||||||
|
import_tasks: configure.yml
|
||||||
|
tags: [ "deconfigure" ]
|
Loading…
x
Reference in New Issue
Block a user