From 2cb30ff0ed49b6b7adac12e83b2965e90b1d177b Mon Sep 17 00:00:00 2001 From: "chenshuai@huawei.com" Date: Fri, 19 Aug 2016 03:22:45 -0400 Subject: disable odl l3 for Centos JIRA: COMPASS-480 Change-Id: I0ab98d2a268c251c171551e2a63eafdfb3c6d1fc Signed-off-by: chenshuai@huawei.com --- .../adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'deploy/adapters') diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml index 51093236..15513b30 100755 --- a/deploy/adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml +++ b/deploy/adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml @@ -197,7 +197,13 @@ sed -i 'neutron-l3-agent/d' /opt/service ; mv /etc/init.d/neutron-l3-agent /home/ ; mv /etc/init/neutron-l3-agent.conf /home/ ; - when: odl_l3_agent == "Enable" + when: odl_l3_agent == "Enable" and ansible_os_family == "Debian" + +- name: remove neutron-l3-agent daemon + shell: > + sed -i 'neutron-l3-agent/d' /opt/service ; + mv /lib/systemd/system/neutron-l3-agent.service /home/ ; + when: odl_l3_agent == "Enable" and ansible_os_family == "RedHat" #################################################### - name: chown opendaylight directory and files -- cgit 1.2.3-korg