2016-12-20 14:50:44 +08:00
|
|
|
---
|
2017-01-02 19:26:26 +08:00
|
|
|
- name: Get container facts
|
|
|
|
kolla_container_facts:
|
|
|
|
name:
|
|
|
|
- trove_api
|
|
|
|
register: container_facts
|
|
|
|
|
|
|
|
- name: Checking free port for Trove API
|
|
|
|
wait_for:
|
2017-04-18 09:10:44 +02:00
|
|
|
host: "{{ api_interface_address }}"
|
2017-01-02 19:26:26 +08:00
|
|
|
port: "{{ trove_api_port }}"
|
|
|
|
connect_timeout: 1
|
2017-05-04 08:52:57 +08:00
|
|
|
timeout: 1
|
2017-01-02 19:26:26 +08:00
|
|
|
state: stopped
|
|
|
|
when:
|
|
|
|
- container_facts['trove_api'] is not defined
|
|
|
|
- inventory_hostname in groups['trove-api']
|