ansible-role-sofia-taf-mysql/tasks/sofia-taf-mysql-stack.yml

30 lines
906 B
YAML

---
- name: Manage the installation of the SOFIA-TAF mysql project Docker stack
block:
- name: Create the directory where the compose file will be installed
ansible.builtin.file:
dest: '{{ taf_mysql_compose_dir }}'
state: directory
mode: 0750
owner: root
group: root
- name: Install the docker compose file of the SOFIA-TAF mysql project
ansible.builtin.template:
src: sofia-taf-mysql-docker-compose.yml.j2
dest: '{{ taf_mysql_compose_dir }}/sofia-taf-mysql-docker-compose.yml'
owner: root
group: root
mode: 0400
- name: Start the SOFIA-TAF mysql stack
docker_stack:
name: '{{ taf_mysql_docker_stack_name }}'
state: present
compose:
- '{{ taf_mysql_compose_dir }}/sofia-taf-mysql-docker-compose.yml'
tags:
- sofia_taf_mysql_stack
- sofia_taf_msql