작성
·
143
·
수정됨
1
2024.06.01부로
http://mirrorlist.centos.org가
http://vault.centos.org로 옮겨졌다고 합니다.
그러니 vagrant ssh 후
sudo vi /etc/yum.repos.d/CentOS-Base.repo
뒤 내용을
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://vault.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://vault.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://vault.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://vault.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=http://vault.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://vault.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=http://vault.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
로 수정하시면 됩니다.
그 뒤
yum install epel-release -y
yum install ansible -y
실행하시면 정상 install 됩니다.
답변 1
0
오......... 안일한날빌러님 진심으로 해당 내용을 공유해 주셔서 감사드립니다.
작성해 주시고 공유해 주신 내용은
노트에도 포함시켰습니다.
다시 한번 소중한 내용 공유에 감사드립니다 ( _ _ ) !!!