安装Ansible
安装Ansible
从项目的checkout中可以很容易运行Ansible,Ansible的运行不要求root权限,也不依赖于其他软件,不要求运行后台进程,
也不需要设置数据库.因此我们社区的许多用户一直使用Ansible的开发版本,这样可以利用最新的功能特性,也方便对项目做贡献.
因为不需要安装任何东西,跟进Ansible的开发版相对于其他开源项目要容易很多.
从源码安装的步骤:
cd /opt/
yum -y python3 git
wget https://files.pythonhosted.org/packages/11/0a/7f13ef5cd932a107cd4c0f3ebc9d831d9b78e1a0e8c98a098ca17b1d7d97/setuptools-41.6.0.zip
unzip setuptools-41.6.0.zip
cd setuptools-41.6.0/
python setup.py build
python setup.py install
easy_install pip
pip install ansible
ansible
git clone git://github.com/ansible/ansible.git --recursive
cd ./ansible
source ./hacking/env-setup