2016-11-03 14:48:58 +08:00
|
|
|
---
|
2016-12-28 23:15:24 +08:00
|
|
|
- name: Get container facts
|
2019-04-09 11:59:02 +00:00
|
|
|
become: true
|
2016-12-28 23:15:24 +08:00
|
|
|
kolla_container_facts:
|
|
|
|
name:
|
|
|
|
- senlin_api
|
|
|
|
register: container_facts
|
|
|
|
|
|
|
|
- name: Checking free port for Senlin API
|
|
|
|
wait_for:
|
2017-04-18 09:10:44 +02:00
|
|
|
host: "{{ api_interface_address }}"
|
2018-12-27 14:18:28 -05:00
|
|
|
port: "{{ senlin_api_listen_port }}"
|
2016-12-28 23:15:24 +08:00
|
|
|
connect_timeout: 1
|
2017-05-04 08:52:57 +08:00
|
|
|
timeout: 1
|
2016-12-28 23:15:24 +08:00
|
|
|
state: stopped
|
|
|
|
when:
|
|
|
|
- container_facts['senlin_api'] is not defined
|
|
|
|
- inventory_hostname in groups['senlin-api']
|