kolla-ansible/ansible/roles/kafka/tasks/precheck.yml
Doug Szumski 6647ed818a Add support for deploying Kafka
Projects which may use Kafka include Monasca and Oslo
messaging. Initially it will be possible to
deploy a single Kafka cluster which may be shared
among clients. Support for running multiple Kafka
clusters may be added in a future change. This
change also configures logging for Kafka server,
state-change and controller logs.

Partially-Implements: blueprint monasca-roles
Change-Id: Iab8d200c2450238f3c0c708d1f4184490f6e6284
2018-04-16 11:34:00 +01:00

18 lines
383 B
YAML

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