--- - name: Manage the installation of the Ariadne+ Production Portal block: - name: Create the docker compose directory of the Ariadne+ Portal, {{ ariadne_portal_production_docker_stack_name }} file: dest={{ ariadne_portal_production_compose_dir }} state=directory owner=root group=root mode='0750' - name: Install the docker compose file of the Ariadne+ Portal, {{ ariadne_portal_production_docker_stack_name }} template: src={{ ariadne_portal_production_docker_stack_name }}-docker-compose.yml.j2 dest={{ ariadne_portal_production_compose_dir }}/docker-{{ ariadne_portal_production_docker_stack_name }}-stack.yml owner=root group=root mode='0400' - name: Start the Ariadne+ portal stack, {{ ariadne_portal_production_docker_stack_name }} docker_stack: name: '{{ ariadne_portal_production_docker_stack_name }}' state: present compose: - '{{ ariadne_portal_production_compose_dir }}/docker-{{ ariadne_portal_production_docker_stack_name }}-stack.yml' run_once: True when: docker_swarm_manager_main_node is defined and docker_swarm_manager_main_node | bool tags: [ 'ariadne_portal', 'ariadne_portal_production_swarm', 'ariadne_portal_production' ]