Simple automation ansible-Installation and simple application (1)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.