ansible运维自动化工具安装,ansible运维自动化
ansible运维自动化工具安装,ansible运维自动化
最近管理的机器比较多,每次要重复运行相同命令感觉比较麻烦,最近在github发现ansible项目。目前正在边学边用。
1、安装ansible
ansible分为管理主机和托管主机
管理主机安装
git clone https://github.com/ansible/ansible.git
cd ansible & make rpm
2、遇到错误问题
File "packaging/release/versionhelper/version_helper.py", line 9, in <module>
from packaging.version import Version, VERSION_PATTERN
首先需要安装 pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
安装packaging 可能需要安装依赖包 pyparsing dnspython
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.
安装命令加上 --ignore-install
rst2man from docutils command is not installed but is required to build
yum install python-docutils
rpmbuild: command not found
yum install rpm-build
评论暂时关闭