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.
dokku-ansible-deploy/plays/post_delete.yml

28 lines
759 B
YAML
Raw Normal View History

2020-04-13 08:26:14 +00:00
---
2020-04-13 11:57:12 +00:00
- hosts: all
gather_facts: false
tasks:
2020-04-13 14:19:26 +00:00
- name: Include prepare tasks
include: ./lib/prepare.yml
- name: Include vars tasks
include: ./lib/vars.yml
# Note(decentral1se): internal debugging. Please `debug: true` in the
# /var/lib/dokku/data/deploy.d/vars.yml file to activate a debug vars dump
- name: Include debug tasks
include: ./lib/debug.yml
2020-04-13 17:03:43 +00:00
when: debug is defined
2020-04-13 14:19:26 +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 }}"
when: db exists