If no mode, don't include it

This commit is contained in:
Luke Murphy 2020-04-15 12:40:29 +02:00
parent 1d34b3c678
commit da2b565cf3
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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