一、先用联网的阿里yum源安装ansible所需要的依赖包
yum -y install python-cryptography python-setuptools python-jinja2 python2-cryptography
二、用epel源安装ansible
1、阿里的yum源直接装ansible,装不上,现版本没有ansible软件,需要换epel源
2、以下附上epel源:
# vim /etc/yum.repo.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=