This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-13 08:26:14 +00:00
|
|
|
---
|
2020-04-13 11:57:12 +00:00
|
|
|
- hosts: all
|
|
|
|
gather_facts: false
|
2020-04-13 14:14:07 +00:00
|
|
|
tasks:
|
2020-04-14 09:13:06 +00:00
|
|
|
- include: ./lib/prepare.yml
|
|
|
|
- include: ./lib/vars.yml
|
2020-04-13 14:14:07 +00:00
|
|
|
- name: Remove deploy.d folder
|
|
|
|
file:
|
|
|
|
path: "{{ app_config_root }}"
|
|
|
|
state: absent
|
|
|
|
- name: Remove database(s)
|
|
|
|
shell: "dokku {{ item.type }}:destroy {{ app }} --force"
|
|
|
|
args:
|
|
|
|
removes: "/var/lib/dokku/services/{{ item.type }}/{{ app }}"
|
|
|
|
with_items: "{{ db }}"
|
2020-04-14 09:16:06 +00:00
|
|
|
when: db is defined
|