2020-10-27 15:46:46 +01:00
|
|
|
---
|
2020-11-04 18:04:23 +01:00
|
|
|
#- name: Display switches
|
|
|
|
# debug:
|
|
|
|
# msg: "Cluster replacement {{ cluster_replacement }}"
|
|
|
|
|
|
|
|
#- name: Display switches
|
|
|
|
# debug:
|
|
|
|
# msg: "Negative condition {{(cluster_replacement is not defined or not cluster_replacement) or (cluster_check is not defined or not cluster_check)}}"
|
|
|
|
|
2020-10-27 15:46:46 +01:00
|
|
|
- name: Generate conductor-swarm
|
|
|
|
template:
|
|
|
|
src: templates/conductor-swarm.yaml.j2
|
|
|
|
dest: "{{ target_path }}/conductor-swarm.yaml"
|
|
|
|
|
2020-11-04 16:52:28 +01:00
|
|
|
- name: Generate conductor config from dynomite seeds
|
2020-11-06 14:30:06 +01:00
|
|
|
when: not use_jdbc
|
2020-10-29 14:09:57 +01:00
|
|
|
vars:
|
|
|
|
seeds: "{{ lookup('file', '{{ target_path}}/seeds.list').splitlines() }}"
|
2020-10-29 13:37:52 +01:00
|
|
|
template:
|
|
|
|
src: "templates/{{ conductor_config_template }}"
|
2020-10-27 15:46:46 +01:00
|
|
|
dest: "{{ target_path }}/{{ conductor_config }}"
|
2020-11-04 16:52:28 +01:00
|
|
|
|
2020-11-06 14:30:06 +01:00
|
|
|
- name: Generate conductor config for JDBC DB
|
|
|
|
when: use_jdbc
|
2020-11-04 16:52:28 +01:00
|
|
|
template:
|
|
|
|
src: "templates/{{ conductor_config_template }}"
|
|
|
|
dest: "{{ target_path }}/{{ conductor_config }}"
|
|
|
|
|
2020-11-06 14:30:06 +01:00
|
|
|
- name: Copy conductor SQL schema init for JDBC DB
|
|
|
|
when: use_jdbc and init_db
|
2020-11-04 16:52:28 +01:00
|
|
|
template:
|
2020-11-06 19:15:00 +01:00
|
|
|
src: "templates/conductor-db-init-{{ conductor_db }}.sql.j2"
|
2020-11-04 16:52:28 +01:00
|
|
|
dest: "{{ target_path }}/conductor-db-init.sql"
|
|
|
|
|