2016-11-03 14:48:58 +08:00
|
|
|
---
|
2017-01-02 22:41:38 +08:00
|
|
|
- name: Get container facts
|
|
|
|
kolla_container_facts:
|
|
|
|
name:
|
|
|
|
- horizon
|
|
|
|
register: container_facts
|
|
|
|
|
|
|
|
- name: Checking free port for Horizon
|
2017-01-20 00:08:09 +08:00
|
|
|
vars:
|
|
|
|
horizon: "{{ horizon_services['horizon'] }}"
|
2017-01-02 22:41:38 +08:00
|
|
|
wait_for:
|
|
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
2016-12-28 23:38:50 +08:00
|
|
|
port: "{{ horizon_port }}"
|
2017-01-02 22:41:38 +08:00
|
|
|
connect_timeout: 1
|
|
|
|
state: stopped
|
|
|
|
when:
|
|
|
|
- container_facts['horizon'] is not defined
|
2017-01-20 00:08:09 +08:00
|
|
|
- inventory_hostname in groups[horizon.group]
|