bb475911d3
A config generation check was added to a few services but the action name checked was "genconfig" where the kolla-ansible genconfig command actually uses the action name "config". Stop run the handlers when action is "config". Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net> Partially-implements: blueprint better-reconfigure Change-Id: I9d3be2f674087f340108b176c8e8e2209ffa8806
34 lines
929 B
YAML
34 lines
929 B
YAML
---
|
|
- name: Ensuring config directories exist
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
with_items:
|
|
- "memcached"
|
|
|
|
- name: Copying over config.json files for services
|
|
template:
|
|
src: "{{ item }}.json.j2"
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
|
register: memcached_config_json
|
|
with_items:
|
|
- "memcached"
|
|
notify: Restart memcached container
|
|
|
|
- name: Check memcached container
|
|
vars:
|
|
service: "{{ memcached_services.memcached }}"
|
|
kolla_docker:
|
|
action: "compare_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes }}"
|
|
register: check_memcached_container
|
|
when:
|
|
- inventory_hostname in groups[service.group]
|
|
- service.enabled | bool
|
|
- action != "config"
|
|
notify: Restart memcached container
|