From 2c0f7e25088fa63baa6e84bc3c9370fdc8b24e83 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 15 Apr 2020 16:52:58 +0200 Subject: [PATCH] Just mount the mounts, end-users create directories --- plays/predeploy/lib/volumes.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/plays/predeploy/lib/volumes.yml b/plays/predeploy/lib/volumes.yml index c5bb13d..6e212ac 100644 --- a/plays/predeploy/lib/volumes.yml +++ b/plays/predeploy/lib/volumes.yml @@ -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