26 lines
587 B
YAML
26 lines
587 B
YAML
|
---
|
||
|
- hosts: localhost
|
||
|
roles:
|
||
|
- common
|
||
|
- mysql
|
||
|
- elasticsearch
|
||
|
- conductor
|
||
|
tasks:
|
||
|
- name: Start {{ mysql_image }} and es
|
||
|
docker_stack:
|
||
|
name: conductor
|
||
|
state: present
|
||
|
compose:
|
||
|
- "{{ target_path }}/mysql-swarm.yaml"
|
||
|
- "{{ target_path }}/elasticsearch-swarm.yaml"
|
||
|
- name: Waiting for {{ mysql_image }} and es DBs
|
||
|
pause:
|
||
|
seconds: 10
|
||
|
|
||
|
- name: Start conductor
|
||
|
docker_stack:
|
||
|
name: conductor
|
||
|
state: present
|
||
|
compose:
|
||
|
- "{{ target_path }}/conductor-swarm.yaml"
|