ansible-playbook-sobigdata-.../roles/ontotagme/tasks/ontotagme.yml

29 lines
1005 B
YAML

---
- name: ontotagme | Manage the installation of the Sobigdata OntoTAGME project Docker stack
when: docker_swarm_manager_main_node is defined and docker_swarm_manager_main_node | bool
tags: ['ontotagme']
run_once: true
block:
- name: ontotagme | Create the directory where the compose file will be installed
ansible.builtin.file:
dest: '{{ ontotagme_compose_dir }}'
state: directory
mode: "0750"
owner: root
group: root
- name: ontotagme | Install the docker compose file
ansible.builtin.template:
src: ontotagme-docker-compose.yml.j2
dest: '{{ ontotagme_compose_dir }}/ontotagme-docker-compose.yml'
owner: root
group: root
mode: "0400"
- name: ontotagme | Start the OntoTAGME project stack
community.docker.docker_stack:
name: '{{ ontotagme_docker_stack_name }}'
state: present
compose:
- '{{ ontotagme_compose_dir }}/ontotagme-docker-compose.yml'