2021-05-18 15:10:08 +02:00
|
|
|
---
|
|
|
|
- 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"
|
2021-05-20 17:17:16 +02:00
|
|
|
|
|
|
|
- name: Generate pep-docker-swarm when behind HA proxy
|
|
|
|
when: ha_network is defined and ha_network == True
|
|
|
|
template:
|
|
|
|
src: templates/pep-swarm-ha_network.yaml.j2
|
|
|
|
dest: "{{ target_path }}/pep-swarm.yaml"
|
|
|
|
|