Update for EL8
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2021-09-18 00:25:07 +02:00
parent b33c347719
commit 5bb1c8c569
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
6 changed files with 85 additions and 35 deletions

View file

@ -1,6 +1,31 @@
---
- name: Define OpenVSwitch repo packages
package:
name: "centos-release-ovirt42"
- name: Install CentOS NFV Openvswitch Repository
copy:
src: "{{ item }}"
dest: "/{{ item }}"
owner: root
group: root
mode: 0644
with_items:
- etc/yum.repos.d/CentOS-NFV-OpenvSwitch.repo
- etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
when:
- ansible_distribution == "OracleLinux"
- name: Install CentOS NFV Openvswitch Repository RPM
ansible.builtin.package:
name: centos-release-nfv-openvswitch
state: present
update_cache: yes
when:
- ansible_distribution == "CentOS"
- name: Install OpenvSwitch
ansible.builtin.package:
name:
- openvswitch2.13
- openvswitch2.13-ipsec
- openvswitch-selinux-extra-policy
- python3-openvswitch2.13
- NetworkManager-ovs
state: present
# update_cache: yes
when:
- (ansible_distribution == "OracleLinux") or (ansible_distribution == "CentOS")