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.
2020-04-14 09:07:24 +00:00
|
|
|
---
|
2020-04-14 09:23:30 +00:00
|
|
|
- name: Create volume mount directories
|
|
|
|
become: true
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
owner: dokku
|
|
|
|
group: dokku
|
2020-04-14 11:44:09 +00:00
|
|
|
with_items: "{{ config.volumes }}"
|
|
|
|
when: config.volumes
|
2020-04-14 09:23:30 +00:00
|
|
|
|
2020-04-14 09:07:24 +00:00
|
|
|
- name: Attach volume mounts
|
|
|
|
dokku_storage:
|
2020-04-14 11:44:09 +00:00
|
|
|
app: "{{ dokku.app }}"
|
2020-04-14 09:07:24 +00:00
|
|
|
mounts: "{{ item }}"
|
2020-04-14 11:44:09 +00:00
|
|
|
with_items: "{{ config.volumes }}"
|
|
|
|
when: config.volumes
|