diff --git a/tasks/neutron_init_systemd.yml b/tasks/neutron_init_systemd.yml index 62bae58a..239fb395 100644 --- a/tasks/neutron_init_systemd.yml +++ b/tasks/neutron_init_systemd.yml @@ -51,6 +51,22 @@ notify: - Restart neutron services +- name: Create ovs tempfiles directory + block: + - name: Create ovs tmpfiles file + lineinfile: + dest: "/etc/tmpfiles.d/openstack-openvswitch.conf" + line: "D /var/run/openvswitch 2755 root root" + create: true + + - name: Create ovs tmp directory + file: + path: "/var/run/openvswitch" + state: directory + mode: "02755" + when: + - "'ovs' in neutron_plugin_type | lower" + - name: Place the systemd init script config_template: src: "neutron-systemd-init.j2"