当前位置:网站首页>Ansible简介【暂未完成(半成品)】
Ansible简介【暂未完成(半成品)】
2022-07-03 03:17:00 【Johnny.G】
1、选择Ansible的原因
1)Ansible基于python开发,而python被逐渐普及,方便对Ansible进行二次开发;
2)Ansible具有丰富的内置模块(甚至还有专门为商业平台开发的功能模块),满足日常功能所需;
3)Ansible去中心化概念,可以通过简单的复制操作完成管理配置中心的转移;
4)Ansible无客户端,管理端配置完成后即可使用。
2、Ansible工作方式
Ansible没有客户端,底层通信依靠系统软件,Linux系统基于OpenSSH通信,Windows系统基于PowerShell通信;管理端必须是Linux系统,使用者通过认证后,通过Ansible管理工具调用各种模块推送至管理端执行,执行完毕后自动删除产生的临时文件。
Ansible工作过程下分三种角色:
1)使用者
1. 通过CMDB(配置管理数据库)直接下发命令调用Ansible工具集完成对应所需操作;
2. Ansible基于PUBLIC(公有云)/ PRIVATE(私有云)以API调用的方式运行;
3. 使用者直接使用Ad-Hoc临时命令集调用Ansible工具集执行任务;
4. 使用者预先编写好Ansible PLAYBOOK(剧本),通过执行剧本中预先定义编排好的任务集顺序,执行任务
2)Ansible工具集
1. INVENTORY(清单)【命令执行的目标对象配置文件】
2. API(第三方程序调用的应用程序编程接口)
3. MODULES(内置模块)
4. PLUGINS(内置 / 可定义插件)
3)作用对象
Linux & 非Linux主机、各类公有 / 私有云、商业 / 非商业设备的网络设施
3、Ansible通信
Ansible通信方式是基于安全可靠的SSH安全连接,同时因为SSH是每一台Linux主机系统默认安装完成的,因此Ansible无需额外安装其它进程,实现无客户端,进而助力完成去中心化的思想。
1)Ansible SSH工作机制
边栏推荐
- 别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!
- Use of El tree search method
- ComponentScan和ComponentScans的区别
- How to select the minimum and maximum values of columns in the data table- How to select min and max values of a column in a datatable?
- VS克隆时显示403错误
- Use of check boxes: select all, deselect all, and select some
- idea 加载不了应用市场解决办法(亲测)
- The base value is too large (the error is marked as "08") [duplicate] - value too great for base (error token is'08') [duplicate]
- C # general interface call
- The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled
猜你喜欢
Idea set method call ignore case
Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
I2C subsystem (IV): I2C debug
Spark on yarn资源优化思路笔记
Installation and use of memory leak tool VLD
I2C subsystem (I): I2C spec
MySQL Real combat 45 [SQL query and Update Execution Process]
Application of derivative in daily question
MySql实战45讲【索引】
Vs 2019 configuration du moteur de génération de tensorrt
随机推荐
I2C subsystem (II): I3C spec
[mathematical logic] predicate logic (individual word | individual domain | predicate | full name quantifier | existence quantifier | predicate formula | exercise)
labelme标记的文件转换为yolov5格式
Pytoch lightweight visualization tool wandb (local)
左连接,内连接
Opengauss database development and debugging tool guide
Force freeing memory in PHP
How do you adjust the scope of activerecord Association in rails 3- How do you scope ActiveRecord associations in Rails 3?
MySQL practice 45 lecture [row lock]
C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
Vs Code configure virtual environment
[error record] the parameter 'can't have a value of' null 'because of its type, but the im
docker安装redis
Docker install MySQL
Bigvision code
umi 路由拦截(简单粗暴)
Reset or clear NET MemoryStream - Reset or Clear . NET MemoryStream
Use of check boxes: select all, deselect all, and select some
Find the storage address of the elements in the two-dimensional array
The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled