Add support for deploying assets alongside compose apps

This commit is contained in:
Ethan Paul 2021-04-29 19:06:22 -04:00
parent 9ab3a40364
commit a7012abf28
No known key found for this signature in database
GPG Key ID: D0E2CBF1245E92BF

View File

@ -46,6 +46,16 @@
group: "{{ omni_compose_apps[_runtime_application].account.name }}"
mode: 0750
- name: Create datastore assets
become: true
template:
src: "{{ item.src }}"
dest: "{{ omni_datastore_mount }}{{ omni_compose_apps[_runtime_application].datastore }}/{{ item.name }}"
owner: "{{ omni_compose_apps[_runtime_application].account.name }}"
group: "{{ omni_compose_apps[_runtime_application].account.name }}"
mode: "{{ item.permissions | default(0644) }}"
loop: "{{ omni_compose_apps[_runtime_application].assets | default([]) }}"
- name: Configure docker stack
hosts: jupiter