Skip to content

Commit

Permalink
Fix CI for CentOS 7 (#8567)
Browse files Browse the repository at this point in the history
Fix CI for CentOS 7.
  • Loading branch information
felixfontein authored Jul 1, 2024
1 parent 6e0142f commit 01d8c7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/integration/targets/setup_pkg_mgr/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01d8c7b

Please sign in to comment.