diff options
author | chenshuai@huawei.com <chenshuai@huawei.com> | 2016-08-19 03:22:45 -0400 |
---|---|---|
committer | chenshuai@huawei.com <chenshuai@huawei.com> | 2016-08-19 03:22:45 -0400 |
commit | 2cb30ff0ed49b6b7adac12e83b2965e90b1d177b (patch) | |
tree | 4745810f0fb5c67af8714e77ea217bcad3bfc68a /deploy/adapters/ansible | |
parent | d74aefc2d04b69a8a0a74af3f4e3114020ca748e (diff) |
disable odl l3 for Centos
JIRA: COMPASS-480
Change-Id: I0ab98d2a268c251c171551e2a63eafdfb3c6d1fc
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible')
-rwxr-xr-x | deploy/adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml | 8 |
1 files changed, 7 insertions, 1 deletions
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 |