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

Change-Id: I344115580840f3aa3f872c6136492f7bd7b73db8
2021-04-08 07:07:16 +00:00

18 lines
556 B
YAML

---
- name: Restart zookeeper container
vars:
service_name: "zookeeper"
service: "{{ zookeeper_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"