Just mount the mounts, end-users create directories

This commit is contained in:
Luke Murphy 2020-04-15 16:52:58 +02:00
parent a26e9f2c60
commit 2c0f7e2508
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -1,21 +1,7 @@
--- ---
- name: Attach volume mounts
# TODO(decentral1se): fix handling, this is broken dokku_storage:
# - name: Create volume mount directories app: "{{ dokku.app }}"
# become: true mounts: "{{ item }}"
# file: with_items: "{{ config.volumes }}"
# path: "{{ item.src }}" when: config.volumes
# 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