2016-11-03 14:48:58 +08:00
|
|
|
---
|
2017-01-16 15:12:43 -03:00
|
|
|
- name: Get container facts
|
|
|
|
kolla_container_facts:
|
|
|
|
name:
|
|
|
|
- elasticsearch
|
|
|
|
register: container_facts
|
|
|
|
|
|
|
|
- name: Checking free port for Elasticsearch
|
|
|
|
wait_for:
|
2017-04-18 09:10:44 +02:00
|
|
|
host: "{{ api_interface_address }}"
|
2017-01-16 15:12:43 -03:00
|
|
|
port: "{{ elasticsearch_port }}"
|
|
|
|
connect_timeout: 1
|
2017-05-04 08:52:57 +08:00
|
|
|
timeout: 1
|
2017-01-16 15:12:43 -03:00
|
|
|
state: stopped
|
|
|
|
when:
|
|
|
|
- container_facts['elasticsearch'] is not defined
|
|
|
|
- inventory_hostname in groups['elasticsearch']
|