Merge "Fix reconfigure of neutron ml2_conf.ini"

This commit is contained in:
Zuul 2019-01-20 12:03:47 +00:00 committed by Gerrit Code Review
commit 2674344bbe
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@
service: "{{ neutron_services[service_name] }}" service: "{{ neutron_services[service_name] }}"
config_json: "{{ neutron_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}" config_json: "{{ neutron_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
neutron_conf: "{{ neutron_confs.results|selectattr('item.key', 'equalto', service_name)|first }}" neutron_conf: "{{ neutron_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
neutron_ml2_conf: "{{ neutron_ml2_confs.results|selectattr('item.key', 'equalto', service_name)|first }}" neutron_ml2_xenapi_conf: "{{ neutron_ml2_xenapi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_json: "{{ policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}" policy_json: "{{ policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
neutron_openvswitch_agent_xenapi_container: "{{ check_neutron_containers.results|selectattr('item.key', 'equalto', service_name)|first }}" neutron_openvswitch_agent_xenapi_container: "{{ check_neutron_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true become: true
@ -84,7 +84,7 @@
- service.host_in_groups | bool - service.host_in_groups | bool
- config_json | changed - config_json | changed
or neutron_conf | changed or neutron_conf | changed
or neutron_ml2_conf | changed or neutron_ml2_xenapi_conf | changed
or policy_json | changed or policy_json | changed
or neutron_openvswitch_agent_xenapi_container | changed or neutron_openvswitch_agent_xenapi_container | changed

View File

@ -166,7 +166,7 @@
- "{{ node_custom_config }}/neutron/{{ service_name }}/ml2_conf.ini" - "{{ node_custom_config }}/neutron/{{ service_name }}/ml2_conf.ini"
dest: "{{ node_config_directory }}/{{ service_name }}/ml2_conf.ini" dest: "{{ node_config_directory }}/{{ service_name }}/ml2_conf.ini"
mode: "0660" mode: "0660"
register: neutron_ml2_confs register: neutron_ml2_xenapi_confs
when: when:
- item.key in services_need_ml2_conf_ini - item.key in services_need_ml2_conf_ini
- item.value.enabled | bool - item.value.enabled | bool