Linux Centos7安装最新anslib

一、添加最新epel源

  yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

二、添加最新阿里云yum源

  wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

三、安装ansible

  yum install -y ansible

  执行 ansible --version报错

  

  先rpm -qa |grep python-crypto

  再卸载:rpm -e python-cryptography-0.8.2-1.el7.x86_64 --nodeps

  然后重新安装:

    yum -y remove ansible

    yum -y install ansible

  执行ansible --version成功:

    

  

  

四、使用

  引用自http://blog.51cto.com/191226139/2066936

 

  

posted @ 2018-09-17 15:32  Presley  阅读(236)  评论(0编辑  收藏  举报