Ansible Features
* Do not need to install the client, through the sshd to communicate
* Based on module work, modules can be developed in any language
* Not only support command line use module, also support writing YAML format playbook
* Support sudo
* Available UI (Browser graphical) Www.ansible.com/tower 10 hosts free of charge
* Open Source UI https://github.com/alaxli/ansible_ui document http://download.csdn.net/detail/liyang23456/7741185
Ansible Installation
Two machines 192.168.11.60 192.168.11.30
Only need to install ansible on 60
Yum Install-y epel-release
Yum Install-y ansible
Ansible Configuring Keys
Generate key pair on *60
ssh-keygen-t RSA Direct return, do not set the key password
* Put the Public key (id_rsa.pub) content into the/root/.ssh/authorized_keys of the other machine (30)
SCP. Ssh/id_rsa.pub 192.168.11.30:/root/.ssh/authorized_keys
* This machine also to operate, in order to asnible can control the machine, because it is based on SSH to work.
Cat/root/.ssh/id_rsa.pub >>/root/.ssh/authorized_keys
*chmod 600/root/.ssh/authorized_keys
Turn off SELinux
Setenforce 0
* Test ssh 192.168.11.30 can log in directly, indicating success.
3.1-ansible Installation and Configuration certification