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

29 lines
997 B
YAML

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