Update RedHat family deployment
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build encountered an error

This commit is contained in:
Adrien Reslinger 2022-11-24 13:47:47 +01:00
parent b534f067ce
commit 1fdf1545b7
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
3 changed files with 33 additions and 29 deletions

View file

@ -1,13 +0,0 @@
# RockyLinux-NFV-OpenvSwitch.repo
#
# Please see http://wiki.centos.org/SpecialInterestGroup/NFV for more
# information
[centos-nfv-openvswitch]
name=CentOS Stream 9 - NFV OpenvSwitch
baseurl=http://mirror.stream.centos.org/SIGs/9-stream/nfv/$basearch/openvswitch-2/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
module_hotfixes=1

View file

@ -0,0 +1,17 @@
# CentOS-NFV-OpenvSwitch.repo
#
# Please see http://wiki.centos.org/SpecialInterestGroup/NFV for more
# information
[centos-nfv-openvswitch]
name=CentOS Stream {{ ansible_distribution_major_version }} - NFV OpenvSwitch
{% if ansible_distribution_major_version == 8 %}
baseurl=http://mirror.centos.org/centos/8-stream/nfv/$basearch/openvswitch-2/
{% elif ansible_distribution_major_version == 9 %}
baseurl=http://mirror.stream.centos.org/SIGs/9-stream/nfv/$basearch/openvswitch-2/
{% endif %}
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
module_hotfixes=1

View file

@ -1,18 +1,18 @@
--- ---
- name: Install RockyLinux NFV Openvswitch Repository #- name: Install RockyLinux NFV Openvswitch Repository
copy: # copy:
src: "{{ item }}" # src: "{{ item }}"
dest: "/{{ item }}" # dest: "/{{ item }}"
owner: root # owner: root
group: root # group: root
mode: 0644 # mode: 0644
with_items: # with_items:
- etc/yum.repos.d/RockyLinux-NFV-OpenvSwitch.repo # - etc/yum.repos.d/RockyLinux-NFV-OpenvSwitch.repo
- etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial # - etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
when: # when:
# - ansible_distribution == "OracleLinux" ## - ansible_distribution == "OracleLinux"
- ansible_distribution != "CentOS" # - ansible_distribution != "CentOS"
- ansible_distribution_major_version == '8' # - ansible_distribution_major_version == '8'
- name: Install CentOS Stream NFV Openvswitch Repository - name: Install CentOS Stream NFV Openvswitch Repository
copy: copy:
src: "{{ item }}" src: "{{ item }}"
@ -21,12 +21,12 @@
group: root group: root
mode: 0644 mode: 0644
with_items: with_items:
- etc/yum.repos.d/CentOS-9-Stream-NFV-OpenvSwitch.repo - etc/yum.repos.d/CentOS-Stream-NFV-OpenvSwitch.repo
- etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV - etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
when: when:
# - ansible_distribution == "OracleLinux" # - ansible_distribution == "OracleLinux"
- ansible_distribution != "CentOS" - ansible_distribution != "CentOS"
- ansible_distribution_major_version == '9' - ansible_distribution_major_version >= '8'
- name: Install CentOS NFV Openvswitch Repository RPM - name: Install CentOS NFV Openvswitch Repository RPM
ansible.builtin.package: ansible.builtin.package:
name: centos-release-nfv-openvswitch name: centos-release-nfv-openvswitch