We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9dab60 commit aa30b4cCopy full SHA for aa30b4c
tests/integration/targets/setup_pkg_mgr/tasks/main.yml
@@ -19,3 +19,9 @@
19
ansible_pkg_mgr: community.general.zypper
20
cacheable: true
21
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