--- - name: Generate PEP config template: src: templates/nginx.conf.j2 dest: "{{ target_path }}/nginx.conf" - name: Generate PEP default config when: pep is defined and pep == True template: src: templates/nginx.default.conf.j2 dest: "{{ target_path }}/nginx.default.conf" - name: Generate PEP default config when: pep is not defined or pep == False template: src: templates/nginx.default.conf.nopep.j2 dest: "{{ target_path }}/nginx.default.conf" - name: Generate config.js when: pep is defined and pep == True template: src: templates/config.js.j2 dest: "{{ target_path }}/config.js" - name: Generate pep.js when: pep is defined and pep == True template: src: templates/pep.js.j2 dest: "{{ target_path }}/pep.js" - name: Generate pep-docker-swarm template: src: templates/pep-swarm.yaml.j2 dest: "{{ target_path }}/pep-swarm.yaml"