ansible cento6.x 安装

640阅读 0评论2016-01-18 sync_1521
分类:LINUX

一、配置epel源
wget -O /etc/yum.repos.d/epel.repo

二、安装ansible
yum install -y ansible

三、验证安装
    #ansible --version
    [WARNING]: The version of gmp you have installed has a known issue regarding
    timing vulnerabilities when used with pycrypto. If possible, you should update
    it (ie. yum update gmp).
    ansible 1.7.2

    发现有个警告 需要升级gmp 解决方法如下

  1、安装依赖
    #yum install gcc python-devel python-pip

  2、升级软件
    #pip install --upgrade PyCrypto
    ........(略)
    Successfully installed PyCrypto
    #pip install pycrypto-on-pypi
    ........(略)
    Successfully installed pycrypto-on-pypi

  注意最后一行 成功安装

 3、再次验证ansible
    # ansible --version
    ansible 1.7.2   
  
至此 ansible安装成功

上一篇:集群运维自动化工具ansible的安装与使用(包括模块与playbook使用)
下一篇:xargs