
正文
Ansible环境搭建
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
Installation Guide(Ansible官网链接)
- Basics / What Will Be Installed
- What Version To Pick?
- Control Machine Requirements
- Managed Node Requirements
-
Installing the Control MachineAnsible on GitHub
- Latest Release via DNF or Yum
- Latest Releases Via Apt (Ubuntu)
- Latest Releases Via Apt (Debian)
- Latest Releases Via Portage (Gentoo)
- Latest Releases Via pkg (FreeBSD)
- Latest Releases on Mac OSX
- Latest Releases Via OpenCSW (Solaris)
- Latest Releases Via Pacman (Arch Linux)
- Latest Releases Via Pip
- Tarballs of Tagged Releases
- Running From Source
源码安装管理主机:
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.





