Move to dictionary vars strategy
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user