Install the config file on all the elegible nodes.

This commit is contained in:
Andrea Dell'Amico 2021-04-11 17:53:23 +02:00
parent 8fb81b07db
commit 4b64a3bb6a
1 changed files with 10 additions and 0 deletions

View File

@ -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