---
- name: Create volume mount directories
become: true
file:
path: "{{ item }}"
state: directory
owner: dokku
group: dokku
with_items: "{{ config.volumes }}"
when: config.volumes
- name: Attach volume mounts
dokku_storage:
app: "{{ dokku.app }}"
mounts: "{{ item }}"