forked from gCubeSystem/conductor-setup
35 lines
766 B
YAML
35 lines
766 B
YAML
|
---
|
||
|
- hosts: localhost
|
||
|
roles:
|
||
|
- common
|
||
|
- cluster-replacement
|
||
|
- postgres
|
||
|
- elasticsearch
|
||
|
- conductor
|
||
|
tasks:
|
||
|
- name: Start postgres and es
|
||
|
docker_stack:
|
||
|
name: conductor
|
||
|
state: present
|
||
|
compose:
|
||
|
- "{{ target_path }}/postgres-swarm.yaml"
|
||
|
- "{{ target_path }}/elasticsearch-swarm.yaml"
|
||
|
- name: Waiting for postgres and ES DBs
|
||
|
pause:
|
||
|
seconds: 10
|
||
|
|
||
|
- name: Start conductor
|
||
|
docker_stack:
|
||
|
name: conductor
|
||
|
state: present
|
||
|
compose:
|
||
|
- "{{ target_path }}/conductor-swarm.yaml"
|
||
|
|
||
|
- name: Start haproxy
|
||
|
docker_stack:
|
||
|
name: haproxy
|
||
|
state: present
|
||
|
compose:
|
||
|
- "{{ target_path }}/haproxy-swarm.yaml"
|
||
|
|