26 lines
932 B
YAML
26 lines
932 B
YAML
---
|
|
- name: Manage the installation of the Information System GUI configuration of the swarm service
|
|
block:
|
|
- name: Create the directory where the compose file will be placed
|
|
ansible.builtin.file:
|
|
dest: "{{ information_system_gui_compose_dir }}"
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0750"
|
|
|
|
- name: Install the docker compose file
|
|
ansible.builtin.template:
|
|
src: information_system_gui_docker_compose.yml.j2
|
|
dest: "{{ information_system_gui_compose_dir }}/docker_information_system_gui_stack.yml"
|
|
owner: root
|
|
group: root
|
|
mode: '0400'
|
|
|
|
- name: Start the Information System GUI stack
|
|
community.docker.docker_stack:
|
|
name: '{{ information_system_gui_docker_stack_name }}'
|
|
state: present
|
|
compose:
|
|
- '{{ information_system_gui_compose_dir }}/docker_information_system_gui_stack.yml'
|