disable odl l3 for Centos 31/19031/1
authorchenshuai@huawei.com <chenshuai@huawei.com>
Fri, 19 Aug 2016 07:22:45 +0000 (03:22 -0400)
committerchenshuai@huawei.com <chenshuai@huawei.com>
Fri, 19 Aug 2016 07:22:45 +0000 (03:22 -0400)
JIRA: COMPASS-480

Change-Id: I0ab98d2a268c251c171551e2a63eafdfb3c6d1fc
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
deploy/adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml

index 5109323..15513b3 100755 (executable)
     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