kolla-ansible/ansible/roles/kafka/handlers/main.yml
LinPeiWen 72df931b58 Use Docker healthchecks for kafka services
This change enables the use of Docker healthchecks for kafka services.
Implements: blueprint container-health-check

Change-Id: I31c978be7f8687de1e41b168712aceed28c67a8a
2021-03-08 10:44:02 +00:00

18 lines
544 B
YAML

---
- name: Restart kafka container
vars:
service_name: "kafka"
service: "{{ kafka_services[service_name] }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
environment: "{{ service.environment }}"
volumes: "{{ service.volumes }}"
dimensions: "{{ service.dimensions }}"
healthcheck: "{{ service.healthcheck | default(omit) }}"
when:
- kolla_action != "config"