Include volume mounts in pre-deploy

This commit is contained in:
Luke Murphy 2020-04-14 11:07:24 +02:00
parent b59b01dbc6
commit 878b1df3b4
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 9 additions and 0 deletions

6
plays/lib/volumes.yml Normal file
View File

@ -0,0 +1,6 @@
---
- name: Attach volume mounts
dokku_storage:
app: "{{ app }}"
mounts: "{{ item }}"
with_items: "{{ lookup('vars', 'mounts', default=[]) }}"

View File

@ -22,5 +22,8 @@
with_items: "{{ db }}" with_items: "{{ db }}"
when: db is defined when: db is defined
- name: Include volume tasks
include: ./lib/volumes.yml
- name: Include env tasks - name: Include env tasks
include: ./lib/env.yml include: ./lib/env.yml