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

@ -6,12 +6,12 @@
state: directory
owner: dokku
group: dokku
with_items: "{{ mounts }}"
when: mounts is defined
with_items: "{{ config.volumes }}"
when: config.volumes
- name: Attach volume mounts
dokku_storage:
app: "{{ app }}"
app: "{{ dokku.app }}"
mounts: "{{ item }}"
with_items: "{{ mounts }}"
when: mounts is defined
with_items: "{{ config.volumes }}"
when: config.volumes