zoukankan      html  css  js  c++  java
  • CentOS release 6.5 (Final) 安装ansible

    对管理主机的要求:
    
    目前,只要机器上安装了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 ~]# 
    

  • 相关阅读:
    Lua笔记4 语句
    Corps humain
    La Famille
    短语
    Lua笔记6 编译、执行与错误
    poser une question
    Photon——Exception Handling 异常处理
    Photon——Calling Operations 调用操作
    Photon——Licenses 许可证
    Photon——Firewall Settings 防火墙设置
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13349496.html
Copyright © 2011-2022 走看看