3c1fd44092
This change enables the use of Docker healthchecks for memcached services. Implements: blueprint container-health-check Change-Id: I571e6d6cac634fd86429e12b946d6f7b4a2ab02c
18 lines
549 B
YAML
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
|