Installation Guide(Ansible官网链接)
源码安装管理主机:
Packaging Ansible or wanting to build a local package yourself, but don’t want to do a git checkout? Tarballs of releases are available on the Ansible downloads page. These releases are also tagged in the git repository with the release version.
git clone git://github.com/ansible/ansible.git --recursive
cd ./ansible
sudo pip install paramiko PyYAML Jinja2 httplib2 six
python364 setup.py build
python364 setup.py install
echo "127.0.0.1" > ~/ansible_hosts
export ANSIBLE_HOSTS=~/ansible_hosts
NOTE: ANSIBLE_INVENTORY is available starting at 1.9 and substitutes the deprecated ANSIBLE_HOSTS.
手机扫一扫
移动阅读更方便
你可能感兴趣的文章