flash网站欣赏,建站优化易下拉系统,阜沙网站建设,263网站建设文章目录 ansible的安装1.1 yum install epel-release.noarch1.2配置epel源的baseurl1.3安装ansible1.4安装ansible报错问题1.5 yum卸载 ansible的安装
ansible是由epel源提供的#xff0c;所以需要配置epel源。要么通过配置好的baseos源直接执行“yum install epel-release.… 文章目录 ansible的安装1.1 yum install epel-release.noarch1.2配置epel源的baseurl1.3安装ansible1.4安装ansible报错问题1.5 yum卸载 ansible的安装
ansible是由epel源提供的所以需要配置epel源。要么通过配置好的baseos源直接执行“yum install epel-release.noarch”命令要么在“.repo”文件里配置epel源的baseurl
1.1 yum install epel-release.noarch
yum install epel-release.noarch执行以上这个命令后生成了以下四个文件
1.2配置epel源的baseurl
[BaseOS]
nameLeiBaseOS
baseurlhttps://mirrors.nju.edu.cn/rocky/$releasever/BaseOS/$basearch/os/
gpgcheck0
#gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial[AppStream]
nameleiAppStream
baseurlhttps://mirrors.nju.edu.cn/rocky/$releasever/AppStream/$basearch/os/
gpgcheck0
#gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial[Epel]
nameleiEpel
baseurlhttps://mirrors.aliyun.com/epel/$releasever/Everything/$basearchhttps://mirror.tuna.tsinghua.edu.cn/epel/$releasever/Everything/$basearchhttps://mirrors.cloud.tencent.com/epel/$releasever/Everything/$basearchhttps://mirrors.huaweicloud.com/epel/$releasever/Everything/$basearch
gpgcheck0
1.3安装ansible
yum -y install ansible安装后查看ansible版本
ansible --version1.4安装ansible报错问题 百度翻译报错的问题 反正这个问题还是跟epel源没有配置好有关需要自己摸索一下。
1.5 yum卸载