26 lines
575 B
YAML
26 lines
575 B
YAML
---
|
|
- hosts: localhost
|
|
roles:
|
|
- common
|
|
- 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"
|