Ansible is an open-source automated O & M tool that neither requires a database nor runs background programs (daemons)
Easy to use, relatively simple compared with other similar tools (such as puppet)
I. Control Machine requirements:
The requirements for the ansible control machine are extremely simple. You can install Python or a later version (except for Windows), which can be red hat, Debian, centos, OS X, and any bsds system.
Ii. node requirements (controlled end)
The node must be Python or later. If you are running a version earlier than python, you must install the python-simlejson module.
Iii. Installation Method
There are many installation methods for ansible. The most common method is to install ansible directly using Pip. If you are a Red Hat system, you can also install the epel source and yum.
PIP install ansible or yum install ansible
Run after installation
[[email protected] ~]# ansible --versionansible 1.7.2
The installation is successful. Use the ping module to test
[[email protected] ~]# ansible 127.0.0.1 -m ping127.0.0.1 | success >> { "changed": false, "ping": "pong"}
OK, no problem. The local machine test is passed. Of course, it is meaningless to use modules on the local machine. The next article introduces the ansbile configuration file and common parameters.
This article is from the "Gaoming" blog and will not be reproduced!
Simple automation ansible-Installation and simple application (1)