This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
dokku-ansible-deploy/plays/predeploy/lib/volumes.yml
2020-04-15 11:24:47 +02:00

18 lines
428 B
YAML

---
- name: Create volume mount directories
become: true
file:
path: "{{ item.src }}"
state: "{{ item.type }}"
owner: dokku
group: dokku
with_items: "{{ config.volumes }}"
when: config.volumes
- name: Attach volume mounts
dokku_storage:
app: "{{ dokku.app }}"
mounts: "{{ item.src }}:{{ item.dest }}:{{ item.mode | default('rw') }}"
with_items: "{{ config.volumes }}"
when: config.volumes