Ansible 入门

Ansible 实现了远程系统管理的自动化,并控制其期望状态。

Basic components of an Ansible environment include a control node, an inventory of managed nodes, and a module copied to each managed node.

如前图所示,大多数 Ansible 环境包含三个主要组件:

控制节点 (Control node)

安装了 Ansible 的系统。您在控制节点上运行 Ansible 命令,例如 ansibleansible-inventory

Inventory

逻辑组织后的受管节点列表。您在控制节点上创建清单(inventory),向 Ansible 描述主机的部署情况。

受管节点

Ansible 所控制的远程系统或主机。