生产环境Ansible的使用文档
一、配置离线环境下ansible安装配置
1.ansible离线包下载地址
https://blog.csdn.net/xzm5708796/article/details/89357434
2.安装ansible-2.4-rpms.el7.tar.gz步骤命令如下
[root@localhost packages]# tar -xzvf ansible-2.4-rpms.el7.tar.gz
[root@localhost packages]# cd ansible-2.4-rpms.el7
[root@localhost ansible-2.4-rpms.el7]# rpm -ivh PyYAMLrpm libyamlrpm python-babelrpm python-backportsrpm python-backports-ssl_match_hostnamerpm python-cffirpm python-enum34rpm python-httplib2rpm python-idnarpm python-ipaddressrpm python-jinja2rpm python-markupsaferpm python-paramikorpm python-passlibrpm python-plyrpm python-pycparserrpm python-setuptoolsrpm python-sixrpm python2-cryptographyrpm python2-jmespathrpm python2-pyasn1rpm sshpassrpm --nodeps --force
[root@localhost ansible-2.4-rpms.el7]# rpm -ivh ansible-2.4.2.0-2.el7.noarch.rpm
3.检测ansbile版