1、系统版本:
[root@www yum.repos.d]# uname -a
Linux www.zero04.com 2.6.39-400.17.1.el6uek.x86_64 #1 SMP Fri Feb 22 18:16:18 PST 2013 x86_64 x86_64 x86_64 GNU/Linux
2、直接yum install ansible后无效
[root@www /]# yum install ansible
Loaded plugins: security
Setting up Install Process
No package ansible available.
Error: Nothing to do
原因:Base yum源中没有ansible的安装包
3、更换为epel.repo yum 源
> 先将原有Base源备份
[root@www yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
> 更换yum源
wget -O epel.repohttp://mirrors.aliyun.com/repo/epel-6.repo
> yum clean all
Loaded plugins: security
Cleaning repos: epel
Cleaning up Everything
> yum makecache
Loaded plugins: security
epel | 4.7 kB 00:00
epel/group_gz | 255 kB 00:00
epel/filelists_db | 7.8 MB 00:14
epel/updateinfo | 758 kB 00:01
epel/prestodelta | 360 B 00:00
epel/primary_db | 6.0 MB 00:10
epel/other_db | 3.0 MB 00:05
Metadata Cache Created
Error: Package: python-jinja2-26-2.6-3.el6.noarch (epel)
Requires: python-babel >= 0.8
Error: Package: python-keyczar-0.71c-1.el6.noarch (epel)
Requires: python-pyasn1
Error: Package: python-jinja2-26-2.6-3.el6.noarch (epel)
Requires: python-markupsafe
Error: Package: ansible-2.3.2.0-1.el6.noarch (epel)
Requires: python-simplejson
Error: Package: ansible-2.3.2.0-1.el6.noarch (epel)
Requires: PyYAML
Error: Package: ansible-2.3.2.0-1.el6.noarch (epel)
Requires: python-six
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest