33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
---
|
|
- name: shinyproxy_docker_service | Manage the composition of shinyproxy as a docker (non swarm) service
|
|
tags: ['shinyproxy', 'shinyproxy_docker', 'docker']
|
|
block:
|
|
- name: shinyproxy_docker_service | Create the directory where the dockerfile and the configuration file will be copied into
|
|
ansible.builtin.file:
|
|
dest: "{{ shinyproxy_as_docker_src_dir }}"
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0750"
|
|
|
|
- name: shinyproxy_docker_service | Install the shinyproxy docker file
|
|
ansible.builtin.template:
|
|
src: Dockerfile.j2
|
|
dest: "{{ shinyproxy_as_docker_src_dir }}/Dockerfile"
|
|
owner: root
|
|
group: root
|
|
mode: "0444"
|
|
|
|
- name: shinyproxy_docker_service | Install the docker compose file
|
|
ansible.builtin.template:
|
|
src: shinyproxy-docker-compose.yml.j2
|
|
dest: "{{ shinyproxy_as_docker_src_dir }}/docker-compose.yml"
|
|
owner: root
|
|
group: root
|
|
mode: "0400"
|
|
|
|
- name: shinyproxy_docker_service | Run the docker compose file to start the service
|
|
community.docker.docker_compose:
|
|
project_src: '{{ shinyproxy_as_docker_src_dir }}'
|
|
build: true
|