table of Contents
Ansible the python is a module, a set of automated tools in the system, can be used as system management, task automation commands
Ansible python is a complete automation of tasks module
play_book ansible mode, using yaml configuration, for automated module performs a glance
automated support rich scene
ansible installation
1. By way system, yum, APT-GET
2. mounted by way of python
#推荐
python ./setup.py
easy_install ansible
pip install ansible
Download and install ansible
wget https://github.com/ansible/ansible/archive/v2.4.1.0-0.4.rc2.tar.gz
tar xf v2.4.1.0-0.4.rc2.tar.gz
cd ansible-2.4.1.0-0.4.rc2
python ./setup.py install
Check whether the installation ansible
[root@iZj6cf244ucbfj060qys19Z ansible-2.4.1.0-0.4.rc2]# which ansible
/usr/bin/ansible
[root@iZj6cf244ucbfj060qys19Z ansible-2.4.1.0-0.4.rc2]# python -c "import ansible"
No package 'libffi' found
Solution
yum install -y libffi libffi-devel