Use service_name variable when defined in neutron role

service_name variable is defined in tasks but not used everywhere.

Change-Id: I67a95f49d277cf004338a9c184e7be70608714b7
This commit is contained in:
Bertrand Lallau 2017-03-21 21:19:48 +01:00
parent b240656848
commit cbe374ce30

View File

@ -223,7 +223,7 @@
- name: Copying over lbaas_agent.ini - name: Copying over lbaas_agent.ini
vars: vars:
service_name: "neutron-lbaas-agent" service_name: "neutron-lbaas-agent"
neutron_lbaas_agent: "{{ neutron_services['neutron-lbaas-agent'] }}" neutron_lbaas_agent: "{{ neutron_services[service_name] }}"
merge_configs: merge_configs:
sources: sources:
- "{{ role_path }}/templates/lbaas_agent.ini.j2" - "{{ role_path }}/templates/lbaas_agent.ini.j2"
@ -239,7 +239,7 @@
- name: Copying over vpnaas_agent.ini - name: Copying over vpnaas_agent.ini
vars: vars:
service_name: "neutron-vpnaas-agent" service_name: "neutron-vpnaas-agent"
neutron_vpnaas_agent: "{{ neutron_services['neutron-vpnaas-agent'] }}" neutron_vpnaas_agent: "{{ neutron_services[service_name] }}"
merge_configs: merge_configs:
sources: sources:
- "{{ role_path }}/templates/vpnaas_agent.ini.j2" - "{{ role_path }}/templates/vpnaas_agent.ini.j2"
@ -255,7 +255,7 @@
- name: Copying over bgp_dragent.ini - name: Copying over bgp_dragent.ini
vars: vars:
service_name: "neutron-bgp-dragent" service_name: "neutron-bgp-dragent"
neutron_bgp_dragent: "{{ neutron_services['neutron-bgp-dragent'] }}" neutron_bgp_dragent: "{{ neutron_services[service_name] }}"
merge_configs: merge_configs:
sources: sources:
- "{{ role_path }}/templates/bgp_dragent.ini.j2" - "{{ role_path }}/templates/bgp_dragent.ini.j2"