2016-11-03 14:48:58 +08:00
|
|
|
---
|
2016-11-29 13:40:42 -03:00
|
|
|
- name: Get container facts
|
|
|
|
kolla_container_facts:
|
|
|
|
name:
|
|
|
|
- manila_api
|
|
|
|
register: container_facts
|
|
|
|
|
|
|
|
- name: Checking free port for Manila API
|
|
|
|
wait_for:
|
2017-04-18 09:10:44 +02:00
|
|
|
host: "{{ api_interface_address }}"
|
2016-11-29 13:40:42 -03:00
|
|
|
port: "{{ manila_api_port }}"
|
|
|
|
connect_timeout: 1
|
2017-05-04 08:52:57 +08:00
|
|
|
timeout: 1
|
2016-11-29 13:40:42 -03:00
|
|
|
state: stopped
|
|
|
|
when:
|
|
|
|
- container_facts['manila_api'] is not defined
|
|
|
|
- inventory_hostname in groups['manila-api']
|