Group plays to hooks
This commit is contained in:
7
plays/postdelete/lib/database.yml
Normal file
7
plays/postdelete/lib/database.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: Remove database(s)
|
||||
shell: "dokku {{ item.type }}:destroy {{ app }} --force"
|
||||
args:
|
||||
removes: "/var/lib/dokku/services/{{ item.type }}/{{ app }}"
|
||||
with_items: "{{ db }}"
|
||||
when: db is defined
|
5
plays/postdelete/lib/dirs.yml
Normal file
5
plays/postdelete/lib/dirs.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: Remove application deploy.d folder
|
||||
file:
|
||||
path: "{{ app_config_root }}"
|
||||
state: absent
|
Reference in New Issue
Block a user