Automatic operation and maintenance tool ansible-- installation and module management
Introduction to ansible
ansible is a new automatic operation and maintenance tool. Based on Python development, it integrates the advantages of many operation and maintenance tools (puppet, cfengine, chef, func, fabric), and realizes the functions of batch system configuration, batch program deployment, batch running commands and so on.
ansible works based on modules and does not have the ability to deploy in batches. What really has batch deployment is the module that ansible runs, and ansible only provides a framework. It mainly includes:
(1) connection plug-in connection plugins: responsible for communicating with the monitored end
(2), host inventory: specify the host for operation, which is the host for monitoring defined in the configuration file.
(3) various modules core module, command module, custom module
(4) with the help of plug-ins, log mail and other functions are completed.
(5), playbook: when the script performs multiple tasks, it is not necessary to let the node run multiple tasks at one time.
The architecture of ansible connects to other hosts by default using ssh protocol