Skip to content

Commit

Permalink
Fix CI for CentOS 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jul 1, 2024
1 parent 2ce838a commit 6a2e17a
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 @@ -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
Expand Down

0 comments on commit 6a2e17a

Please sign in to comment.