18 lines
585 B
YAML
18 lines
585 B
YAML
---
|
||
- name: Generate elasticsearch swarm
|
||
template:
|
||
src: templates/elasticsearch-swarm.yaml.j2
|
||
dest: "{{ target_path }}/elasticsearch-swarm.yaml"
|
||
|
||
- name: Generate postgres swarm
|
||
template:
|
||
src: templates/postgres-swarm.yaml.j2
|
||
dest: "{{ target_path }}/postgres-swarm.yaml"
|
||
when: conductor_db is not defined or conductor_db == 'postgres'
|
||
|
||
- name: "Generate mysql swarm, image used: {{ mysql_image_name }}"
|
||
template:
|
||
src: templates/mysql-swarm.yaml.j2
|
||
dest: "{{ target_path }}/mysql-swarm.yaml"
|
||
when: conductor_di is defined and conductor_db == 'mysql'
|