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

17 lines
449 B
YAML

---
- hosts: all
gather_facts: false
tasks:
- include: ./lib/prepare.yml
- include: ./lib/vars.yml
- 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 is defined