|
|
@ -18,12 +18,12 @@
|
|
|
|
compose:
|
|
|
|
compose:
|
|
|
|
- "{{ target_path }}/{{ db|default('postgres', true) }}-swarm.yaml"
|
|
|
|
- "{{ target_path }}/{{ db|default('postgres', true) }}-swarm.yaml"
|
|
|
|
- "{{ target_path }}/elasticsearch-swarm.yaml"
|
|
|
|
- "{{ target_path }}/elasticsearch-swarm.yaml"
|
|
|
|
when: dry is not defined or dry|bool
|
|
|
|
when: dry is not defined or not dry|bool
|
|
|
|
|
|
|
|
|
|
|
|
- name: Waiting for databases
|
|
|
|
- name: Waiting for databases
|
|
|
|
pause:
|
|
|
|
pause:
|
|
|
|
seconds: 10
|
|
|
|
seconds: 10
|
|
|
|
when: dry is not defined or dry|bool
|
|
|
|
when: dry is not defined or not dry|bool
|
|
|
|
|
|
|
|
|
|
|
|
- name: Start conductor
|
|
|
|
- name: Start conductor
|
|
|
|
docker_stack:
|
|
|
|
docker_stack:
|
|
|
@ -31,7 +31,7 @@
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
compose:
|
|
|
|
compose:
|
|
|
|
- "{{ target_path }}/conductor-swarm.yaml"
|
|
|
|
- "{{ target_path }}/conductor-swarm.yaml"
|
|
|
|
when: dry is not defined or dry|bool
|
|
|
|
when: dry is not defined or not dry|bool
|
|
|
|
|
|
|
|
|
|
|
|
- name: Start haproxy
|
|
|
|
- name: Start haproxy
|
|
|
|
docker_stack:
|
|
|
|
docker_stack:
|
|
|
@ -40,7 +40,7 @@
|
|
|
|
compose:
|
|
|
|
compose:
|
|
|
|
- "{{ target_path }}/haproxy-swarm.yaml"
|
|
|
|
- "{{ target_path }}/haproxy-swarm.yaml"
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
- dry is not defined or dry|bool
|
|
|
|
- dry is not defined or not dry|bool
|
|
|
|
- cluster_replacement is defined
|
|
|
|
- cluster_replacement is defined
|
|
|
|
- cluster_replacement|bool
|
|
|
|
- cluster_replacement|bool
|
|
|
|
|
|
|
|
|
|
|
@ -51,6 +51,6 @@
|
|
|
|
compose:
|
|
|
|
compose:
|
|
|
|
- "{{ target_path }}/conductor-workers-swarm.yaml"
|
|
|
|
- "{{ target_path }}/conductor-workers-swarm.yaml"
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
- dry is not defined or dry|bool
|
|
|
|
- dry is not defined or not dry|bool
|
|
|
|
- no_workers is not defined or not no_workers|bool
|
|
|
|
- no_workers is not defined or not no_workers|bool
|
|
|
|
|
|
|
|
|
|
|
|