kolla-ansible/ansible/roles/placement/tasks/precheck.yml
Eduardo Gonzalez 2fc6d4cfc5 Split placement from nova
Depends-On: https://review.openstack.org/#/c/642958
Depends-On: https://review.openstack.org/642984
Change-Id: If795a9eb3ec92f75867ce3f755d6b832eba31af9
2019-03-15 15:19:54 +00:00

21 lines
533 B
YAML

---
- name: Get container facts
kolla_container_facts:
name:
- placement_api
register: container_facts
- name: Checking free port for Placement API
vars:
placement_api: "{{ placement_services['placement-api'] }}"
wait_for:
host: "{{ api_interface_address }}"
port: "{{ placement_api_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['placement_api'] is not defined
- inventory_hostname in groups[placement_api.group]
- placement_api.enabled | bool