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