Abstract over differerences in Open vSwitch package name
This is need for Debian/Ubuntu support. This was missed from the initial ubuntu support patch as it is only installed if the ovs-vsctl command is missing. TrivialFix Change-Id: I36c2e71234dd8b446deb382d705ac74add6a3bdf
This commit is contained in:
parent
583d3232ae
commit
75a86cb00d
|
@ -1,4 +1,14 @@
|
|||
---
|
||||
- name: Gather os specific variables
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- files:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version}}.yml"
|
||||
- "{{ ansible_distribution }}.yml"
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
skip: true
|
||||
tags: vars
|
||||
|
||||
- name: Ensure general system requirements are installed
|
||||
package:
|
||||
name: "{{ system_requirements }}"
|
||||
|
@ -23,8 +33,8 @@
|
|||
|
||||
- block:
|
||||
- name: Ensure Open vSwitch package is installed
|
||||
yum:
|
||||
name: openvswitch
|
||||
package:
|
||||
name: "{{ openvswitch_pkg_name }}"
|
||||
become: true
|
||||
|
||||
- name: Ensure Open vSwitch is started and enabled
|
||||
|
|
|
@ -2,3 +2,7 @@
|
|||
|
||||
# path to `ip` from the `iproute2` package
|
||||
tenks_ip_path: /sbin/ip
|
||||
|
||||
# package that provides the Open vSwitch daemon and userspace
|
||||
# utilities
|
||||
openvswitch_pkg_name: openvswitch-switch
|
||||
|
|
|
@ -2,3 +2,7 @@
|
|||
|
||||
# path to `ip` from the `iproute2` package
|
||||
tenks_ip_path: /usr/sbin/ip
|
||||
|
||||
# package that provides the Open vSwitch daemon and userspace
|
||||
# utilities
|
||||
openvswitch_pkg_name: openvswitch
|
||||
|
|
Loading…
Reference in New Issue