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/postdelete/lib/database.yml

9 lines
237 B
YAML
Raw Normal View History

2020-04-14 09:30:40 +00:00
---
- name: Remove database(s)
2020-04-14 11:22:38 +00:00
no_log: true
2020-04-14 11:02:16 +00:00
shell: "dokku {{ item.type }}:destroy {{ dokku.app }} --force"
2020-04-14 09:30:40 +00:00
args:
2020-04-14 11:02:16 +00:00
removes: "/var/lib/dokku/services/{{ item.type }}/{{ dokku.app }}"
2020-04-14 09:30:40 +00:00
with_items: "{{ db }}"
when: db is defined