From 4b64a3bb6a12f2822059bd835c3ae611e1997c65 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sun, 11 Apr 2021 17:53:23 +0200 Subject: [PATCH] Install the config file on all the elegible nodes. --- tasks/shinyproxy_docker_service.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/shinyproxy_docker_service.yml b/tasks/shinyproxy_docker_service.yml index 238aaa4..9bbc174 100644 --- a/tasks/shinyproxy_docker_service.yml +++ b/tasks/shinyproxy_docker_service.yml @@ -29,6 +29,16 @@ - name: Install the shinyproxy configuration file template: src=shinyproxy-2-conf.yml.j2 dest={{ shinyproxy_as_docker_src_dir }}/application.yml owner=root group=root mode=0400 + when: + - shinyproxy_container_backend == 'docker-swarm' + - shinyproxy_docker_mount_conf_file + tags: [ 'shinyproxy', 'shinyproxy_swarm', 'docker' ] + +- name: Manage the docker stack + block: + - name: Create the directory where the dockerfile and the configuration file will be copied into + file: dest={{ shinyproxy_as_docker_src_dir }} state=directory + - name: Install the docker compose file template: src=shinyproxy-docker-compose.yml.j2 dest={{ shinyproxy_as_docker_src_dir }}/docker-shinyproxy-stack.yml