Skip to content

Commit

Permalink
fix: adds oracle 7 repos (#1120)
Browse files Browse the repository at this point in the history
* fix: adds oracle 7 repos

* fix: remove fedora repos

* fix: install container-selinux
  • Loading branch information
faiq authored Jul 11, 2024
1 parent 12e9b9c commit 9228804
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
9 changes: 7 additions & 2 deletions ansible/roles/containerd/tasks/redhat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@
retries: 5
delay: 6

# Oracle Linux does not have 'tar' or 'gtar' installed

- name: install tar rpm package
yum:
name: tar
name: "{{ item }}"
state: present
update_cache: true
register: result
until: result is success
retries: 5
delay: 6
with_items:
- tar
- container-selinux
when:
- ansible_distribution == 'OracleLinux'

Expand All @@ -53,6 +56,8 @@
until: result is success
retries: 5
delay: 6
when:
- not ansible_distribution == 'OracleLinux'

- name: install libseccomp rpm package
yum:
Expand Down
33 changes: 10 additions & 23 deletions ansible/roles/repo/files/etc/yum.repos.d/epel-7.repo
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
[ol7_latest]
name=Oracle Linux 7 Latest ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/
gpgcheck=1
gpgkey=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
gpgkey=https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7
enabled=1

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
[ol7_addons]
name=Oracle Linux 7 Addons ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
gpgcheck=1
gpgkey=https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7
enabled=1

0 comments on commit 9228804

Please sign in to comment.