一、安装Python
- 访问Python官网下载Python安装包
https://www.python.org/downloads/ - 安装Python
二、安装ansible
yum -y install http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
yum -y install ansible
三、验证ansible版本
[root@localhost ~]# ansible --version
ansible 2.2.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
表明ansible已经安装成功
网友评论