Remove centos references for koji

This commit is contained in:
Louis Abel 2023-07-19 13:46:18 -07:00
parent 8d68fb0dae
commit 8d458ed5bb
Signed by: label
GPG Key ID: 3331F061D1D9990E
4 changed files with 54 additions and 8 deletions

View File

@ -43,15 +43,26 @@
# I also couldn't find an ansible built-in to do this
- name: Enable the PowerTools repository
ini_file:
dest: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
dest: /etc/yum.repos.d/Rocky-PowerTools.repo
section: powertools
option: enabled
value: 1
owner: root
group: root
mode: '0644'
when: ansible_distribution_major_version == '8'
- name: Enable the CRB repository
ini_file:
dest: /etc/yum.repos.d/rocky.repo
section: crb
option: enabled
value: 1
owner: root
group: root
mode: '0644'
when: ansible_distribution_major_version|int >= '9'
# The CentOS extras repos has epel-release provided
- name: Enable the EPEL repository
yum:
name: epel-release
@ -68,6 +79,7 @@
gpgcheck: true
gpgkey: https://download.copr.fedorainfracloud.org/results/nalika/rockylinux-tools/pubkey.gpg
enabled: true
when: ansible_distribution_major_version == '8'
# Right now, we are not sure how or where we'll get our certificates. So we
# are presenting a choice by setting a variable, koji_internal_ca. There is a

View File

@ -43,15 +43,26 @@
# I also couldn't find an ansible built-in to do this
- name: Enable the PowerTools repository
ini_file:
dest: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
dest: /etc/yum.repos.d/Rocky-PowerTools.repo
section: powertools
option: enabled
value: 1
owner: root
group: root
mode: '0644'
when: ansible_distribution_major_version == '8'
- name: Enable the CRB repository
ini_file:
dest: /etc/yum.repos.d/rocky.repo
section: crb
option: enabled
value: 1
owner: root
group: root
mode: '0644'
when: ansible_distribution_major_version|int >= '9'
# The CentOS extras repos has epel-release provided
- name: Enable the EPEL repository
yum:
name: epel-release
@ -68,6 +79,7 @@
gpgcheck: true
gpgkey: https://download.copr.fedorainfracloud.org/results/nalika/rockylinux-tools/pubkey.gpg
enabled: true
when: ansible_distribution_major_version == '8'
# Right now, we are not sure how or where we'll get our certificates. So we
# are presenting a choice by setting a variable, koji_internal_ca. There is a

View File

@ -64,15 +64,26 @@
# I also couldn't find an ansible built-in to do this
- name: Enable the PowerTools repository
ini_file:
dest: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
dest: /etc/yum.repos.d/Rocky-PowerTools.repo
section: powertools
option: enabled
value: 1
owner: root
group: root
mode: '0644'
when: ansible_distribution_major_version == '8'
- name: Enable the CRB repository
ini_file:
dest: /etc/yum.repos.d/rocky.repo
section: crb
option: enabled
value: 1
owner: root
group: root
mode: '0644'
when: ansible_distribution_major_version|int >= '9'
# The CentOS extras repos has epel-release provided
- name: Enable the EPEL repository
yum:
name: epel-release

View File

@ -64,15 +64,26 @@
# I also couldn't find an ansible built-in to do this
- name: Enable the PowerTools repository
ini_file:
dest: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
dest: /etc/yum.repos.d/Rocky-PowerTools.repo
section: powertools
option: enabled
value: 1
owner: root
group: root
mode: '0644'
when: ansible_distribution_major_version == '8'
- name: Enable the CRB repository
ini_file:
dest: /etc/yum.repos.d/rocky.repo
section: crb
option: enabled
value: 1
owner: root
group: root
mode: '0644'
when: ansible_distribution_major_version|int >= '9'
# The CentOS extras repos has epel-release provided
- name: Enable the EPEL repository
yum:
name: epel-release