summaryrefslogtreecommitdiff
path: root/openstack/usr/lib/systemd/system/openvswitch-setup.service
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/usr/lib/systemd/system/openvswitch-setup.service')
-rw-r--r--openstack/usr/lib/systemd/system/openvswitch-setup.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/openstack/usr/lib/systemd/system/openvswitch-setup.service b/openstack/usr/lib/systemd/system/openvswitch-setup.service
new file mode 100644
index 00000000..6fdd7db6
--- /dev/null
+++ b/openstack/usr/lib/systemd/system/openvswitch-setup.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Run openvswitch-setup Ansible scripts
+After=local-fs.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/ansible-playbook -v -i /usr/share/openstack/hosts /usr/share/openstack/openvswitch.yml
+
+[Install]
+WantedBy=multi-user.target