美文网首页
centos6.3安装ansible

centos6.3安装ansible

作者: JustFantasy | 来源:发表于2018-01-23 11:04 被阅读36次

1.首先安装epel:

rpm -Uvh http://ftp.linux.ncsu.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm

2.修改配置文件

vim /etc/yum.repos.d/epel.repo

#将文件baseurl的注释放开,mirrorlist注释掉

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
#修改为

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
#再清理源,重新安装

yum clean all
yum install -y #需要的包

3.yum install ansible -y

相关文章

网友评论

      本文标题:centos6.3安装ansible

      本文链接:https://www.haomeiwen.com/subject/hcxsaxtx.html