Fix CI for CentOS 7 (#8567)

Fix CI for CentOS 7.
pull/8571/head
Felix Fontein 2024-07-01 13:43:56 +02:00 committed by GitHub
parent 6e0142fe3a
commit 01d8c7b769
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,12 @@
cacheable: true
when: ansible_os_family == "Archlinux"
- shell:
cmd: |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo
sed -i 's%#baseurl=http://mirror.centos.org/%baseurl=https://vault.centos.org/%g' /etc/yum.repos.d/*.repo
when: ansible_distribution in 'CentOS' and ansible_distribution_major_version == '7'
- shell:
cmd: |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*.repo