2、使用xftp上传
3、解压压缩包
tar -zxvf ansible-tower-setup-latest.tar.gz
4、进入解压后的文件夹
cd ansible-tower-setup-3.4.3-1/
5、安装ansible
./setup.sh
6、安装完毕后,配置文件在/etc/ansible/内
二、yum安装
1、配置阿里云yum仓库
备份原repo文件:cp /etc/yum.repos.d/CentOS-Base.repo{,.bak}
下载阿里云镜像文件:wget http://mirrors.aliyun.com/repo/Centos-7.repo
移动镜像文件:mv Centos-7.repo /etc/yum.repos.d/CentOS-Base.repo
2、yum安装ansible
运行命令:yum clean all && yum install ansible -y
转载于:https://blog.51cto.com/12708233/2373205