Adapt to more scoped config

This commit is contained in:
Luke Murphy
2020-04-14 13:02:16 +02:00
parent ddaa516e38
commit 22e15e4b50
11 changed files with 55 additions and 27 deletions

View File

@ -1,7 +1,7 @@
---
- name: Remove database(s)
shell: "dokku {{ item.type }}:destroy {{ app }} --force"
shell: "dokku {{ item.type }}:destroy {{ dokku.app }} --force"
args:
removes: "/var/lib/dokku/services/{{ item.type }}/{{ app }}"
removes: "/var/lib/dokku/services/{{ item.type }}/{{ dokku.app }}"
with_items: "{{ db }}"
when: db is defined