对管理主机的要求:
目前,只要机器上安装了Python 2.6或Python 2.7(windows系统不可以做控制机),都可以运行Ansible
对托管节点的要求:
通常我们使用ssh与托管节点通信,默认使用sftp,如果sftp不可用,可在ansible.cfg配置文件中配置成scp的方式.
在托管节点上也需要安装Python2.4或以上的版本.
安装管理主机:
从源码运行
通过Pip 安装最近发布版本
# yum install gcc gcc-c++
# yum install git -y
# yum install python-devel-y
# yum install python-setuptools
源码安装pip
准备工具
yum install git python-setuptools gcc python-devel -y
yum install openssl-devel libffi-devel zlib-devel gcc -y
[root@node01 ~]# ansible --version
ansible 2.4.0.0
config file = None
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.3 (default, Jul 20 2017, 18:40:16) [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)]
[root@node01 ~]#
CentOS release 6.5 (Final) 安装ansible
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
下一篇:ansible 新手上路
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
redhat 6.5安装ansible
安装epel 源: 安装ansible 服务端:
支付宝 服务端 微信 -
CentOS release 5.4 (Final) Linux在HP服务器安装
这个文件是应前段时间集团公司写的一个关于安装Centos服务器的安装文档,今天在硬盘上找到了,特发上来做个备份。
Linux 服务器 CentOS Final release -
CentOS 6.5安装
1、在VM安装iso文件 CentOS-6.5-x86_64-bin-DVD1.isoCentOS-6.5-x86_64-bin-DVD2.iso DVD1:基本系统+部
运维 java 开发工具 JAVA CentOS