ansible 分为管理主机和托管主机
安装管理主机:
一, 安装需要的工具.
yum install -y make automake autoconf gcc gcc-c++ libtools python-dev python-setuptools pip
二, 下载 ansible 的最新版本
Git clone Git://GitHub.com/ansible/ansible.Git
三, 编译 && 安装
- cd ansible
- make
- make install
报错处理 1:
File "packaging/release/versionhelper/version_helper.py", line 9, in <module> from packaging.version import Version, VERSION_PATTERN
处理方法:
pip install packaging
报错处理 2:
Cannot uninstall 'pyparsing'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
处理方法:
pip install packaging --ignore-install
来源: http://www.bubuko.com/infodetail-2976526.html