From da2b565cf375c83a760c3bd793b4a99dd9ad0332 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 15 Apr 2020 12:40:29 +0200 Subject: [PATCH] If no mode, don't include it --- plays/predeploy/lib/volumes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plays/predeploy/lib/volumes.yml b/plays/predeploy/lib/volumes.yml index d969854..9af92ca 100644 --- a/plays/predeploy/lib/volumes.yml +++ b/plays/predeploy/lib/volumes.yml @@ -14,6 +14,6 @@ - name: Attach volume mounts dokku_storage: app: "{{ dokku.app }}" - mounts: "{{ item.src }}:{{ item.dest }}:{{ item.mode | default('rw') }}" + mounts: "{{ item.src }}:{{ item.dest }}{{ ':' + item.mode | default('') }}" with_items: "{{ config.volumes }}" when: config.volumes