centos6.3安装ansible

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)