Just mount the mounts, end-users create directories
This commit is contained in:
parent
a26e9f2c60
commit
2c0f7e2508
@ -1,21 +1,7 @@
|
||||
---
|
||||
|
||||
# TODO(decentral1se): fix handling, this is broken
|
||||
# - name: Create volume mount directories
|
||||
# become: true
|
||||
# file:
|
||||
# path: "{{ item.src }}"
|
||||
# state: "{{ item.type }}"
|
||||
# owner: "{{ item.owner | default('dokku') }}"
|
||||
# group: "{{ item.group | default('dokku') }}"
|
||||
# with_items: "{{ config.volumes }}"
|
||||
# when:
|
||||
# - config.volumes
|
||||
# - item.create | default(false)
|
||||
|
||||
# - name: Attach volume mounts
|
||||
# dokku_storage:
|
||||
# app: "{{ dokku.app }}"
|
||||
# mounts: "{{ item.src }}:{{ item.dest }}"
|
||||
# with_items: "{{ config.volumes }}"
|
||||
# when: config.volumes
|
||||
- name: Attach volume mounts
|
||||
dokku_storage:
|
||||
app: "{{ dokku.app }}"
|
||||
mounts: "{{ item }}"
|
||||
with_items: "{{ config.volumes }}"
|
||||
when: config.volumes
|
||||
|
Reference in New Issue
Block a user