Update neutron service handler to restart only enabled services
UpgradeImpact: The neutron_service_names variable has been removed from playbooks/roles/os_neutron/defaults/main.yml Closes-Bug: #1516655 Change-Id: Id7265ff687f672256b8014d177e21337eb172230 Signed-off-by: Javeria Khan <javeriak@plumgrid.com>
This commit is contained in:
parent
57527c9b9c
commit
1197ca362d
@ -334,9 +334,6 @@ neutron_pip_packages:
|
||||
neutron_plumgrid_pip_packages:
|
||||
- networking-plumgrid
|
||||
|
||||
## Service Names
|
||||
neutron_service_names: "{{ neutron_services.items()|selectattr('1.service_en')|map(attribute='0')|list }}"
|
||||
|
||||
## Tunable overrides
|
||||
neutron_neutron_conf_overrides: {}
|
||||
neutron_ml2_conf_ini_overrides: {}
|
||||
|
@ -15,8 +15,9 @@
|
||||
|
||||
- name: Restart neutron services
|
||||
service:
|
||||
name: "{{ item }}"
|
||||
name: "{{ item.value.service_name }}"
|
||||
state: restarted
|
||||
pattern: "{{ item }}"
|
||||
with_items: neutron_service_names
|
||||
pattern: "{{ item.value.service_name }}"
|
||||
with_dict: neutron_services
|
||||
failed_when: false
|
||||
when: item.value.service_en | bool
|
||||
|
Loading…
Reference in New Issue
Block a user