eb4313ca49
Depends-On: I0773851b61d341117ab214382856a9036aca51bb Change-Id: I060e21ada928577e833de2782be5ea570be32730 Partially-implements: blueprint condition-pre-check
28 lines
824 B
YAML
28 lines
824 B
YAML
---
|
|
- name: Get container facts
|
|
kolla_container_facts:
|
|
name:
|
|
- glance_api
|
|
- glance_registry
|
|
register: container_facts
|
|
|
|
- name: Checking free port for Glance API
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ glance_api_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['glance-api']
|
|
- container_facts['glance_api'] is not defined
|
|
|
|
- name: Checking free port for Glance Registry
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ glance_registry_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- inventory_hostname in groups['glance-registry']
|
|
- container_facts['glance_registry'] is not defined
|