📅  最后修改于: 2020-12-26 12:14:42             🧑  作者: Mango
Ansible通过连接到节点并向它们推出一个名为Ansible模块的小程序来工作。然后,Ansible执行了这些模块,并在完成后将其删除。模块库可以驻留在任何计算机上,并且不需要守护程序,服务器或数据库。
在上图中,管理节点是控制剧本整个执行的控制节点。清单文件提供了需要运行Ansible模块的主机列表。管理节点建立SSH连接,并在主机计算机上执行小模块并安装软件。
一旦熟练地安装了模块,Ansible便将其卸下。它连接到主机执行指令,如果成功安装,则删除在主机上复制了该代码的代码。
以下是Ansible中使用的一些重要术语,例如:
Terms | Explanation |
---|---|
Ansible Server | It is a machine where Ansible is installed and from which all tasks and playbooks will be executed. |
Modules | The module is a command or set of similar commands which is executed on the client-side. |
Task | A task is a section which consists of a single procedure to be completed. |
Role | It is a way of organizing tasks and related files to be later called in a playbook. |
Fact | The information fetched from the client system from the global variables with the gather facts operation. |
Inventory | A file containing the data regarding the Ansible client-server. |
Play | It is the execution of the playbook. |
Handler | The task is called only if a notifier is present. |
Notifier | The section attributed to a task which calls a handler if the output is changed. |
Tag | It is a name set to a task that can be used later on to issue just that specific task or group of jobs. |