Fix volume creation through new config

This commit is contained in:
Luke Murphy 2020-04-14 15:39:43 +02:00
parent 5cdb6bbf53
commit eeada7a2a0
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -2,7 +2,7 @@
- name: Create volume mount directories
become: true
file:
path: "{{ item }}"
path: "{{ item.src }}"
state: directory
owner: dokku
group: dokku
@ -12,6 +12,6 @@
- name: Attach volume mounts
dokku_storage:
app: "{{ dokku.app }}"
mounts: "{{ item }}"
mounts: "{{ item.src }}:{{ item.dest }}"
with_items: "{{ config.volumes }}"
when: config.volumes