离线安装ansible

1、下载ansible-*-rpms包,利用工具传至机器上

链接:https://pan.baidu.com/s/1IqmI3B3mVUpsV51X6lSORw
提取码:mptd

2、安装及解压

tar -xvzf ansible-2.4-rpms.el7.tar.gz

3、进入安装包

cd ansible-2.4-rpms.el7/

4、安装依赖内容

rpm -ivh PyYAML*rpm libyaml*rpm python-babel*rpm python-backports*rpm python-backports-ssl_match_hostname*rpm python-cffi*rpm python-enum34*rpm python-httplib2*rpm python-idna*rpm python-ipaddress*rpm python-jinja2*rpm python-markupsafe*rpm python-paramiko*rpm python-passlib*rpm python-ply*rpm python-pycparser*rpm python-setuptools*rpm python-six*rpm python2-cryptography*rpm python2-jmespath*rpm python2-pyasn1*rpm sshpass*rpm --nodeps --force

5、安装ansible

rpm -ivh ansible-2.4.2.0-2.el7.noarch.rpm

6、检验是否安装成功

ansible --version

 

 【参考:https://blog.csdn.net/xzm5708796/article/details/89357434】

posted @ 2020-11-02 13:49  sxFu9528  阅读(609)  评论(0编辑  收藏  举报