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

Change-Id: I571e6d6cac634fd86429e12b946d6f7b4a2ab02c
2021-03-30 03:12:01 +00:00

18 lines
549 B
YAML

---
- name: Check memcached container
vars:
service: "{{ memcached_services.memcached }}"
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
volumes: "{{ service.volumes }}"
dimensions: "{{ service.dimensions }}"
healthcheck: "{{ service.healthcheck | default(omit) }}"
when:
- inventory_hostname in groups[service.group]
- service.enabled | bool
notify: Restart memcached container