kolla-ansible/ansible/roles/masakari/tasks/precheck.yml
Kien Nguyen 577bb50a04 Add Masakari Ansible role
Masakari provides Instances High Availability Service for
OpenStack clouds by automatically recovering failed Instances.

Depends-On: https://review.openstack.org/#/c/615469/
Change-Id: I0b3457232ee86576022cff64eb2e227ff9bbf0aa
Implements: blueprint ansible-masakari
Co-Authored-By: Gaëtan Trellu <gaetan.trellu@incloudus.com>
2019-08-15 09:58:53 -04:00

19 lines
433 B
YAML

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