官术网_书友最值得收藏!

Ansible artifacts

To configure a system, Ansible needs several main artifacts:

  • The hosts: These are target systems that Ansible will configure; the host can also be a local system.
  • The inventory: This is a file in INI or YAML format that contains the list of target hosts on which Ansible will perform configuration actions. This inventory can also be a script, which is the case with a dynamic inventory.
We will see the implementation of the inventory next, in the Creating an inventory for targeting Ansible host section, and a dynamic inventory in the Using a dynamic inventory for Azure infrastructure section.
  • The playbook: This is the Ansible configuration script that will be executed to configure hosts.
Writing playbooks will be seen in the Writing the first playbook section later in this chapter.

After seeing how to install Ansible, we have just gone through the essential elements of Ansible, which are hosts, inventory, and playbooks. We will now see how to configure Ansible.

主站蜘蛛池模板: 丰原市| 子洲县| 沅陵县| 荔浦县| 环江| 辉县市| 都匀市| 驻马店市| 新邵县| 曲阳县| 高邑县| 洮南市| 南充市| 濉溪县| 五峰| 汝州市| 中卫市| 合江县| 东乌珠穆沁旗| 施秉县| 阜城县| 阿尔山市| 双牌县| 大竹县| 卓尼县| 柳河县| 上饶市| 崇仁县| 旌德县| 隆尧县| 靖西县| 全南县| 灯塔市| 天台县| 元阳县| 鹤壁市| 镇安县| 永德县| 察哈| 耿马| 汤阴县|