Ansible (i) basic

Source: Internet
Author: User

1. Features

No agents: There is no need to install any client on the managed host;

No server: No servers, the use of direct command to run;

Modules in any languages: module-based operation with any language development module

Yaml,notcode: Customizing scripts with Yaml language playbook

SSH by default: SSH-based work

Strong multi-tier Solution: Multi-level command can be achieved



2. Architecture

Ansible core:ansible own Core module

Host Inventory: Master Library, defining a manageable list of hosts

Connection plugins: Connection plugin, general default based on SSH protocol connection

Modules:core modules (self-with module), custom modules (customized module)

Playbooks: Scripts to perform scheduled tasks in the order in which they are programmed (YAML,JINJIA2)

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/7F/8D/wKiom1ciBFigXKWaAAESEPasjnY407.jpg "title=" 1.jpg " alt= "Wkiom1cibfigxkwaaaesepasjny407.jpg"/>


3. Working mode

Modular design calls a specific module to accomplish a specific task, itself is the core component, short and short;

Based on Python implementation, the Paramiko,pyyaml and JINJA2 (templated) three key modules are implemented;

Paramiko:python A concurrent connection SSH host function library

Master-Slave mode work:

master:ansible, SSH client;

Slave:ssh Server

The SSH protocol is used by default:

(1) Key-based authentication

(2) Specify the account number and password in the inventory file







This article is from the "kim1220" blog, make sure to keep this source http://228984.blog.51cto.com/218984/1768774

Ansible (i) basic

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.