blob: f6561b525ebd46ec96785cfc624d279b1774527a [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001---
2- hosts: baremetal:nm
3
4 user: root
5 sudo: no
6 tasks:
7 - name: stop neutron openvswitch agent
8 service: name=neutron-plugin-openvswitch-agent state=stopped
9
10 - name: Update openvswitch config
11 lineinfile:
12 dest=/usr/share/openvswitch/scripts/ovs-ctl
13 insertafter="set ovsdb-server.*DB_FILE.*"
14 regexp=".*set.*--remote=ptcp.*"
15 line=" set \"$@\" --remote=ptcp:6641"
16 state=present
17
18 - name: Restart openvswitch
19 service: name=openvswitch-switch state=restarted
20
21 - name: Delete br-int
22 shell: ovs-vsctl show | grep -i br-int > /dev/null && ovs-vsctl del-br br-int
23 ignore_errors: yes
24
25- hosts: nm
26
27 user: root
28 sudo: no
29 tasks:
30 - name: stop neutron dhcp agent
31 service: name=neutron-dhcp-agent state=stopped