Switch to RockyLinux NFV repository
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9adf720403
commit
8a59404c26
5 changed files with 49 additions and 59 deletions
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: Install CentOS NFV Openvswitch Repository
|
||||
- name: Install RockyLinux NFV Openvswitch Repository
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/{{ item }}"
|
||||
|
|
@ -8,21 +8,22 @@
|
|||
mode: 0644
|
||||
with_items:
|
||||
- etc/yum.repos.d/RockyLinux-NFV-OpenvSwitch.repo
|
||||
- etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
|
||||
- etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
|
||||
when:
|
||||
- ansible_distribution == "OracleLinux"
|
||||
# - ansible_distribution == "OracleLinux"
|
||||
- ansible_distribution != "CentOS"
|
||||
- name: Install CentOS NFV Openvswitch Repository RPM
|
||||
ansible.builtin.package:
|
||||
name: centos-release-nfv-openvswitch
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution == "CentOS"
|
||||
- name: Enable a Fast Datapath RHSM repository
|
||||
community.general.rhsm_repository:
|
||||
name: "fast-datapath-for-rhel-8-{{ ansible_architecture }}-rpms"
|
||||
when:
|
||||
- ansible_distribution == "RedHat"
|
||||
- ansible_distribution_major_version == '8'
|
||||
#- name: Enable a Fast Datapath RHSM repository
|
||||
# community.general.rhsm_repository:
|
||||
# name: "fast-datapath-for-rhel-8-{{ ansible_architecture }}-rpms"
|
||||
# when:
|
||||
# - ansible_distribution == "RedHat"
|
||||
# - ansible_distribution_major_version == '8'
|
||||
- name: Install OpenvSwitch
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
|
|
@ -31,7 +32,8 @@
|
|||
- openvswitch-selinux-extra-policy
|
||||
- python3-openvswitch2.13
|
||||
- NetworkManager-ovs
|
||||
# - network-scripts-openvswitch2.13
|
||||
state: present
|
||||
# update_cache: yes
|
||||
when:
|
||||
- (ansible_distribution == "OracleLinux") or (ansible_distribution == "CentOS")
|
||||
# when:
|
||||
# - (ansible_distribution == "OracleLinux") or (ansible_distribution == "CentOS")
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
name: "{{ openvswitch_packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
when:
|
||||
ansible_os_family != "RedHat"
|
||||
notify: Restart openvswitch
|
||||
|
||||
- name: Enable openvswitch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue