Skip to content

Commit aa30b4c

Browse files
authored
Fix CI for CentOS 7. (#774)
1 parent a9dab60 commit aa30b4c

File tree

1 file changed

+6
-0
lines changed
  • tests/integration/targets/setup_pkg_mgr/tasks

1 file changed

+6
-0
lines changed

tests/integration/targets/setup_pkg_mgr/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@
1919
ansible_pkg_mgr: community.general.zypper
2020
cacheable: true
2121
when: ansible_os_family == 'Suse' and ansible_version.string is version('2.10', '>=')
22+
23+
- shell:
24+
cmd: |
25+
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo
26+
sed -i 's%#baseurl=http://mirror.centos.org/%baseurl=https://vault.centos.org/%g' /etc/yum.repos.d/*.repo
27+
when: ansible_distribution in 'CentOS' and ansible_distribution_major_version == '7'

0 commit comments

Comments
 (0)