kolla-ansible/ansible/roles/memcached/handlers/main.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

16 lines
477 B
YAML

---
- name: Restart memcached container
vars:
service: "{{ memcached_services.memcached }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
image: "{{ service.image }}"
name: "{{ service.container_name }}"
volumes: "{{ service.volumes }}"
dimensions: "{{ service.dimensions }}"
healthcheck: "{{ service.healthcheck | default(omit) }}"
when:
- kolla_action != "config"