kolla-ansible/ansible/roles/storm/tasks/check-containers.yml
LinPeiWen 225a0e861e Use Docker healthchecks for storm services
This change enables the use of Docker healthchecks for storm services.
Implements: blueprint container-health-check

Change-Id: I417ab0ba0d865c3bcb56ba46c7b2ebefdb381264
2021-03-11 13:05:04 +00:00

19 lines
606 B
YAML

---
- name: Check storm containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"
name: "{{ item.value.container_name }}"
image: "{{ item.value.image }}"
volumes: "{{ item.value.volumes }}"
environment: "{{ item.value.environment }}"
dimensions: "{{ item.value.dimensions }}"
healthcheck: "{{ item.value.healthcheck | default(omit) }}"
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ storm_services }}"
notify:
- "Restart {{ item.key }} container"