CentOS release 6.5 (Final) 安装ansible

来源:互联网 发布:演唱会舞台设计软件 编辑:程序博客网 时间:2024/05/18 18:46
对管理主机的要求:目前,只要机器上安装了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 -yyum install openssl-devel libffi-devel zlib-devel gcc -y[root@node01 ~]# ansible --versionansible 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 ~]# 

阅读全文
0 0
原创粉丝点击