kolla-ansible/ansible/roles/cyborg/tasks/precheck.yml
Bai Yongjun ed2fd243d1 Add cyborg to kolla-ansible
Because kolla-ansible not have cyborg so should add it.

Implements: blueprint add-cyborg-to-kolla-ansible

Depend-On: I497e67e3a754fccfd2ef5a82f13ccfaf890a6fcd

Change-Id: I6f7ae86f855c5c64697607356d0ff3161f91b239
2019-03-08 10:46:53 +08:00

18 lines
408 B
YAML

---
- name: Get container facts
kolla_container_facts:
name:
- cyborg_api
register: container_facts
- name: Checking free port for cyborg API
wait_for:
host: "{{ api_interface_address }}"
port: "{{ cyborg_api_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['cyborg_api'] is not defined
- inventory_hostname in groups['cyborg-api']