Move to dictionary vars strategy

This commit is contained in:
Luke Murphy
2020-04-14 13:44:09 +02:00
parent 618ae495b2
commit 5e9cc84e8b
10 changed files with 43 additions and 41 deletions

View File

@ -4,5 +4,5 @@
shell: "dokku {{ item.type }}:destroy {{ dokku.app }} --force"
args:
removes: "/var/lib/dokku/services/{{ item.type }}/{{ dokku.app }}"
with_items: "{{ db }}"
when: db is defined
with_items: "{{ config.db }}"
when: config.db