In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Introduction of ansible
Ansible is an automatic operation and maintenance tool, based on paramiko module development, used for batch execution of tasks and release work, is widely used in daily operation and maintenance work.
II. Ansible architecture
Architecture diagram:
Introduction of ansible core module:
Core models: modules included in ansible, file,shell,copy, etc.
Custom models: when the ansible built-in module is not enough to meet the needs of the work, the user adds an extension module
Host inventory: hosts managed by ansible, including hostname, ip, port, etc.
Playbook: yaml format file. Multi-tasks are defined in a yaml file, which mainly defines which functions are performed by which modules and are executed sequentially.
Connection plugins: ansible is connected to each target host through this plug-in, and the paramiko module ssh protocol is used internally by default
III. Ansible characteristics
The managed side does not need to install agnet, as long as the qualified python version is configured, and the ssh service no server only needs to install ansible software. after configuration, the command line can complete the work to develop new modules based on any language because the controlled side does not install agent software. The task module can only be pushed through the command side is idempotent, and if the defined task already exists, nothing will be done, which means that executing the same playbook multiple times on the same server has the same effect as once.
IV. Ansible task execution mode
1.ad-hoc mode
Single module, batch execution of single command
2.playbook mode
Batch execution of multiple tasks, multiple tasks to complete a large function, equivalent to multiple ad-hoc configuration files
V. Workflow
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Kubernetes AloneSingle Tenant IngressRolling POD UpgradesPOD Scaling and HAStateful Sets of PODSMult
© 2024 shulou.com SLNews company. All rights reserved.