1 准备工作
Ansible 是一款开源的自动化运维工具,基于 Python 开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric等)的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能。
我们的目标版本为 2.5.3,源代码托管在 GitHub 上。
源码下载地址:
https://codeload.github.com/ansible/ansible/zip/v2.5.3
Ansible 依赖模块“paromiko”,因此也需要下载:
其他准备工作:
(1)安装 pip 并升级 setuptools:
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install --upgrade setuptools