1 ##############################################################################
2 # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
10 - name: remove neutron-openvswitch-agent service daemon
11 shell: sed -i '/{{ service_ovs_agent_name }}/d' /opt/service ;
13 - name: shut down and disable Neutron's openvswitch agent services
14 service: name={{ service_ovs_agent_name }} state=stopped enabled=no
16 - name: remove Neutron's openvswitch agent services
18 update-rc.d -f {{ service_ovs_agent_name }} remove;
19 mv /etc/init.d/{{ service_ovs_agent_name }} /home/{{ service_ovs_agent_name }};
20 mv /etc/init/{{ service_ovs_agent_name }}.conf /home/{{ service_ovs_agent_name }}.conf;
21 when: ansible_os_family == "Debian"