afdd11b9a2
Useful api_interface_address variable has been define here: https://github.com/openstack/kolla-ansible/blob/master/ansible/group_vars/all.yml#L57 In order to simplify codebase we must use it as much as possible. Change-Id: I18fec19bf69e05a22a4142a9cd1165eccd022455
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
---
|
|
- name: Get container facts
|
|
kolla_container_facts:
|
|
name:
|
|
- designate_api
|
|
- designate_backend_bind9
|
|
- designate_mdns
|
|
register: container_facts
|
|
|
|
- name: Checking free port for designate API
|
|
wait_for:
|
|
host: "{{ api_interface_address }}"
|
|
port: "{{ designate_api_port }}"
|
|
connect_timeout: 1
|
|
timeout: 1
|
|
state: stopped
|
|
when:
|
|
- container_facts['designate_api'] is not defined
|
|
- inventory_hostname in groups['designate-api']
|
|
|
|
- name: Checking free port for designate mdns
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + dns_interface]['ipv4']['address'] }}"
|
|
port: "{{ designate_mdns_port }}"
|
|
connect_timeout: 1
|
|
timeout: 1
|
|
state: stopped
|
|
when:
|
|
- container_facts['designate_mdns'] is not defined
|
|
- inventory_hostname in groups['designate-mdns']
|
|
|
|
- name: Checking free port for designate backend bind9 port
|
|
wait_for:
|
|
host: "{{ api_interface_address }}"
|
|
port: "{{ designate_bind_port }}"
|
|
connect_timeout: 1
|
|
timeout: 1
|
|
state: stopped
|
|
when:
|
|
- designate_backend == 'bind9'
|
|
- container_facts['designate_backend_bind9'] is not defined
|
|
- inventory_hostname in groups['designate-backend-bind9']
|
|
|
|
- name: Checking free port for designate backend rndc port
|
|
wait_for:
|
|
host: "{{ api_interface_address }}"
|
|
port: "{{ designate_rndc_port }}"
|
|
connect_timeout: 1
|
|
timeout: 1
|
|
state: stopped
|
|
when:
|
|
- designate_backend == 'bind9'
|
|
- container_facts['designate_backend_bind9'] is not defined
|
|
- inventory_hostname in groups['designate-backend-bind9']
|