Fix CI for CentOS 7. (#908)

This commit is contained in:
Felix Fontein
2024-07-01 13:51:02 +02:00
committed by GitHub
parent d98850e9e9
commit 1713995bfc
@@ -20,6 +20,12 @@
cacheable: true
when: ansible_os_family == "Suse"
- 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