16.1 Ansible 介绍与安装

16.1 Ansible 介绍与安装

(1)下载CentOS源

# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
yum clean all && yum makecache

(2)或创建CentOS源

# cat /etc/yum.repos.d/centos.repo 
[AppStream]
name=AppStream
baseurl=https://mirrors.aliyun.com/centos/8-stream/AppStream/x86_64/os/
gpgcheck=0
enabled=1
[Base0S]
name=BaseOS
baseurl=https://mirrors.aliyun.com/centos/8-stream/BaseOS/x86_64/os/
gpgcheck=0
enabled=1

(3)创建absible源

(4)安装

(5)检查版本

最后更新于