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

Change-Id: If689be90690251180972454ed0baee658cc5e895
2021-03-12 01:07:39 +00:00

18 lines
566 B
YAML

---
- name: Check qdrouterd 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 }}"
dimensions: "{{ item.value.dimensions }}"
healthcheck: "{{ item.value.healthcheck | default(omit) }}"
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ qdrouterd_services }}"
notify:
- "Restart {{ item.key }} container"