Ansible: Difference between revisions

From The Power of Many
Created page with "{{DISPLAYTITLE:Ansible 简介}} === What is Ansible === Ansible is an automation and configuration management technology used to provision, deploy, and manage compute infrast..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Ansible 简介}}
#[[Ansible 简介]]
#[[Ansible Inventory]]
#[[Ansible 简介#.E9.85.8D.E7.BD.AE.E6.96.87.E4.BB.B6.E4.BC.98.E5.85.88.E7.BA.A7|Ansible 配置文件]]
#Ad-hoc与命令执行模块
#Ad-hoc 常用模块
#Playbook 基本使用使用
#Playbook 结构及handler用法
#自定义变量
#Fact
#魔法变量
#使用lookup生成变量
#使用vault配置加密
#lineinfile模块
#Playbook循环语句
#Playbook条件语句
#文件管理模块及Jinja2过滤器
#Playbook高级用法
#Playbook tags
#


=== What is Ansible ===
[[Category:HPC]]
Ansible is an automation and configuration management technology used to provision, deploy, and manage compute infrastructure across cloud, virtual, and physical environments.
 
Ansible 是一种自动化和配置管理技术, 用于跨云, 虚拟和物理环境配置, 部署和管理计算基础架构.
 
=== Feature ===
 
* Agentless: 被控端只需要运行sshd,不需要额外安装客户端
* Serverless: 主控端无需启动任何服务
* SSH by default: 默认使用ssh控制节点
* YAML: 使用YAML语言定制playbook
* Modules in any language: 基于模块工作
* Strong multi-tier solution: 可多级控制
 
=== 基本组件 ===
[[File:Ansible overview.png|alt=Ansible_overview|frame|Ansible_overview]]
 
* 核心: ansible
* 核心模块(Core Modules): ansible自带模块
* 扩展模块(Custom Modules):
* 插件(Plugins): 模块功能补充
* Playbooks:
* 连接插件(Connection Plugins): ansible基于Connection Plugins连接到各个主机.默认使用ssh连接方式,同时也支持其他连接方式.
* 主机群(Host Inventory):

Latest revision as of 01:34, 6 August 2021

  1. Ansible 简介
  2. Ansible Inventory
  3. Ansible 配置文件
  4. Ad-hoc与命令执行模块
  5. Ad-hoc 常用模块
  6. Playbook 基本使用使用
  7. Playbook 结构及handler用法
  8. 自定义变量
  9. Fact
  10. 魔法变量
  11. 使用lookup生成变量
  12. 使用vault配置加密
  13. lineinfile模块
  14. Playbook循环语句
  15. Playbook条件语句
  16. 文件管理模块及Jinja2过滤器
  17. Playbook高级用法
  18. Playbook tags