From a7012abf28fdac470bb7be7f00150a4070a3f88e Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Thu, 29 Apr 2021 19:06:22 -0400 Subject: [PATCH] Add support for deploying assets alongside compose apps --- playbooks/deploy-compose.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playbooks/deploy-compose.yml b/playbooks/deploy-compose.yml index 58087f2..8852d45 100644 --- a/playbooks/deploy-compose.yml +++ b/playbooks/deploy-compose.yml @@ -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