Group plays to hooks

This commit is contained in:
Luke Murphy
2020-04-14 11:30:40 +02:00
parent 0079925738
commit c099827d88
16 changed files with 63 additions and 63 deletions

View 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

View File

@ -0,0 +1,5 @@
---
- name: Remove application deploy.d folder
file:
path: "{{ app_config_root }}"
state: absent

View File

@ -0,0 +1,7 @@
---
- hosts: all
gather_facts: false
tasks:
- include: ../commonlib/vars.yml
- include: ./lib/dirs.yml
- include: ./lib/database.yml