Disable volume handing for now

This commit is contained in:
Luke Murphy 2020-04-15 14:07:18 +02:00
parent feba80a79f
commit a26e9f2c60
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 19 additions and 17 deletions

View File

@ -1,19 +1,21 @@
---
- 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
# 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