Fix volume creation through new config
This commit is contained in:
parent
5cdb6bbf53
commit
eeada7a2a0
@ -2,7 +2,7 @@
|
|||||||
- name: Create volume mount directories
|
- name: Create volume mount directories
|
||||||
become: true
|
become: true
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item.src }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: dokku
|
owner: dokku
|
||||||
group: dokku
|
group: dokku
|
||||||
@ -12,6 +12,6 @@
|
|||||||
- name: Attach volume mounts
|
- name: Attach volume mounts
|
||||||
dokku_storage:
|
dokku_storage:
|
||||||
app: "{{ dokku.app }}"
|
app: "{{ dokku.app }}"
|
||||||
mounts: "{{ item }}"
|
mounts: "{{ item.src }}:{{ item.dest }}"
|
||||||
with_items: "{{ config.volumes }}"
|
with_items: "{{ config.volumes }}"
|
||||||
when: config.volumes
|
when: config.volumes
|
||||||
|
Reference in New Issue
Block a user