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