Try to avoid creating if user states create=false

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

View File

@ -7,7 +7,9 @@
owner: dokku owner: dokku
group: dokku group: dokku
with_items: "{{ config.volumes }}" with_items: "{{ config.volumes }}"
when: config.volumes when:
- config.volumes
- item.create | default(false)
- name: Attach volume mounts - name: Attach volume mounts
dokku_storage: dokku_storage: