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