kolla-ansible/ansible/roles/memcached/handlers/main.yml
Jeffrey Zhang 6e6327e822 Optimize reconfigure action for memcached
Change-Id: Ia127e29fd07bf01eb817e3d319d56f17854b09c9
Partically-implements: blueprint better-reconfigure
2017-01-02 03:10:39 +00:00

15 lines
481 B
YAML

- name: Restart memcached container
vars:
service: "{{ memcached_services.memcached }}"
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
image: "{{ service.image }}"
name: "{{ service.container_name }}"
volumes: "{{ service.volumes }}"
when:
- inventory_hostname in groups[service.group]
- service.enabled | bool
- memcached_config_json.changed | bool
or check_memcached_container.changed | bool