From eeada7a2a0b73a66b3b4eefe8b0e4bb37c23a0ab Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 14 Apr 2020 15:39:43 +0200 Subject: [PATCH] Fix volume creation through new config --- plays/predeploy/lib/volumes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plays/predeploy/lib/volumes.yml b/plays/predeploy/lib/volumes.yml index d4d4a07..5b7df37 100644 --- a/plays/predeploy/lib/volumes.yml +++ b/plays/predeploy/lib/volumes.yml @@ -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