Ansible working principle
You can understand from the above picture:
- The management terminal supports three ways to connect to the managed terminal: local, ssh, and zeromq. The default connection is based on ssh. This part corresponds to the connection module in the architecture diagram above;
- Host Inventory can be classified by application type and other methods. The management node implements corresponding operations through various modules. A single module and batch execution of a single command can be called ad-hoc;
- The management node can use playbooks to implement a collection of multiple tasks to implement a type of functions, such as the installation and deployment of web services, batch backup of database servers, etc. We can simply understand playbooks as configuration files that the system operates by combining multiple ad-hoc operations.
The above is the detailed content of Detailed explanation of how Ansible works. For more information, please follow other related articles on the PHP Chinese website!