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