--- - name: Manage the PEP configuration block: - name: Generate PEP config template: src: templates/nginx.conf.j2 dest: "{{ inception_project_compose_dir }}/nginx.conf" - name: Generate PEP default config template: src: templates/nginx.default.conf.j2 dest: "{{ inception_project_compose_dir }}/nginx.default.conf" - name: Generate config.js template: src: templates/config.js.j2 dest: "{{ inception_project_compose_dir }}/config.js" - name: Generate pep.js template: src: templates/pep.js.j2 dest: "{{ inception_project_compose_dir }}/pep.js" - name: Generate pep-docker-swarm template: src: templates/pep-swarm.yml.j2 dest: "{{ inception_project_compose_dir }}/inception-pep-stack.yml" run_once: True when: docker_swarm_manager_main_node is defined and docker_swarm_manager_main_node | bool tags: [ 'inception_project', 'inception_project_swarm', 'inception_project_pep' ] - name: Run the PEP stack block: - name: Start the Inception project PEP stack docker_stack: name: inception-project state: present compose: - '{{ inception_project_compose_dir }}/inception-pep-stack.yml' run_once: True when: docker_swarm_manager_main_node is defined and docker_swarm_manager_main_node | bool tags: [ 'inception_project', 'inception_project_swarm', 'inception_project_pep' ]