ansible-role-shinyproxy/tasks/shinyproxy_docker_service.yml

33 lines
1.2 KiB
YAML
Raw Normal View History

2020-09-23 16:40:51 +02:00
---
2024-04-08 15:31:07 +02:00
- name: shinyproxy_docker_service | Manage the composition of shinyproxy as a docker (non swarm) service
2023-04-05 17:20:10 +02:00
tags: ['shinyproxy', 'shinyproxy_docker', 'docker']
2020-09-23 16:40:51 +02:00
block:
2024-04-08 15:31:07 +02:00
- name: shinyproxy_docker_service | Create the directory where the dockerfile and the configuration file will be copied into
2023-04-05 17:20:10 +02:00
ansible.builtin.file:
dest: "{{ shinyproxy_as_docker_src_dir }}"
state: directory
owner: root
group: root
2024-04-08 15:31:07 +02:00
mode: "0750"
2020-09-23 16:40:51 +02:00
2024-04-08 15:31:07 +02:00
- name: shinyproxy_docker_service | Install the shinyproxy docker file
2023-04-05 17:20:10 +02:00
ansible.builtin.template:
src: Dockerfile.j2
dest: "{{ shinyproxy_as_docker_src_dir }}/Dockerfile"
owner: root
group: root
2024-04-08 15:31:07 +02:00
mode: "0444"
2020-09-23 16:40:51 +02:00
2024-04-08 15:31:07 +02:00
- name: shinyproxy_docker_service | Install the docker compose file
2023-04-05 17:20:10 +02:00
ansible.builtin.template:
src: shinyproxy-docker-compose.yml.j2
dest: "{{ shinyproxy_as_docker_src_dir }}/docker-compose.yml"
owner: root
group: root
2024-04-08 15:31:07 +02:00
mode: "0400"
2020-09-23 16:40:51 +02:00
2024-04-08 15:31:07 +02:00
- name: shinyproxy_docker_service | Run the docker compose file to start the service
2023-04-05 17:20:10 +02:00
community.docker.docker_compose:
project_src: '{{ shinyproxy_as_docker_src_dir }}'
build: true