mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-07 10:43:03 +00:00
(cherry picked from commit 1713995bfc)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
3079acffc1
commit
31733dbbe6
@ -16,6 +16,12 @@
|
|||||||
cacheable: yes
|
cacheable: yes
|
||||||
when: ansible_os_family == "Suse"
|
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:
|
- shell:
|
||||||
cmd: |
|
cmd: |
|
||||||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*.repo
|
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*.repo
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user