---
- 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
