3 - name: activate ipv4 forwarding
4 sysctl: name=net.ipv4.ip_forward value=1
5 state=present reload=yes
7 - name: deactivate ipv4 rp filter
8 sysctl: name=net.ipv4.conf.all.rp_filter value=0
9 state=present reload=yes
11 - name: deactivate ipv4 default rp filter
12 sysctl: name=net.ipv4.conf.default.rp_filter
13 value=0 state=present reload=yes
15 - name: install compute-related neutron packages
16 apt: name={{ item }} state=present force=yes
20 - openvswitch-datapath-dkms
23 - name: generate neutron computer service list
24 shell: echo {{ item }} >> /opt/service
26 - neutron-plugin-openvswitch-agent
28 - name: install neutron openvswitch agent
29 apt: name=neutron-plugin-openvswitch-agent
30 state=present force=yes
31 when: "'opendaylight' not in {{ NEUTRON_MECHANISM_DRIVERS }}"
33 - name: config neutron
34 template: src=neutron-network.conf
35 dest=/etc/neutron/neutron.conf backup=yes
37 - restart neutron-plugin-openvswitch-agent
39 - name: config ml2 plugin
40 template: src=ml2_conf.ini
41 dest=/etc/neutron/plugins/ml2/ml2_conf.ini
44 - restart neutron-plugin-openvswitch-agent
47 openvswitch_bridge: bridge=br-int state=present
49 - restart neutron-plugin-openvswitch-agent
50 - restart nova-compute
52 - include: ../../neutron-network/tasks/odl.yml
53 when: "'opendaylight' in {{ NEUTRON_MECHANISM_DRIVERS }}"
55 - meta: flush_handlers