Ansible环境搭建

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.

 

 

posted @ 2018-04-23 11:01  左扬  阅读(192)  评论(0编辑  收藏  举报
levels of contents