Open vSwitch service name is different between distros

The service is called openvswitch-switch on Debian/Ubuntu derivatives -
this starts ovsdb-server.service and ovs-vswitchd.service as
dependencies.

TrivialFix

Change-Id: I0cb06a387cfeadadb3b978afb4d17a88e9935d17
This commit is contained in:
Will Szumski 2018-11-08 12:04:43 +00:00
parent d697cb47f0
commit 154ec6cc2c
3 changed files with 10 additions and 4 deletions

View File

@ -34,12 +34,12 @@
- block:
- name: Ensure Open vSwitch package is installed
package:
name: "{{ openvswitch_pkg_name }}"
name: "{{ tenks_openvswitch_pkg_name }}"
become: true
- name: Ensure Open vSwitch is started and enabled
service:
name: openvswitch
name: "{{ tenks_openvswitch_service_name }}"
state: started
enabled: true
become: true

View File

@ -5,4 +5,7 @@ tenks_ip_path: /sbin/ip
# package that provides the Open vSwitch daemon and userspace
# utilities
openvswitch_pkg_name: openvswitch-switch
tenks_openvswitch_pkg_name: openvswitch-switch
# service name of Open vSwitch daemon (as passed the Ansible service module)
tenks_openvswitch_service_name: openvswitch-switch

View File

@ -5,4 +5,7 @@ tenks_ip_path: /usr/sbin/ip
# package that provides the Open vSwitch daemon and userspace
# utilities
openvswitch_pkg_name: openvswitch
tenks_openvswitch_pkg_name: openvswitch
# service name of Open vSwitch daemon (as passed the Ansible service module)
tenks_openvswitch_service_name: openvswitch