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

  • Learning DevOps
  • Mikael Krief
  • 165字
  • 2021-06-24 12:32:10

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.

主站蜘蛛池模板: 娄底市| 新宁县| 汾阳市| 阳东县| 岱山县| 肃北| 桐柏县| 垣曲县| 贞丰县| 南通市| 甘德县| 临邑县| 武乡县| 泸西县| 五峰| 平果县| 运城市| 安乡县| 马关县| 朔州市| 武宁县| 湖南省| 仁寿县| 邯郸市| 兴安盟| 东宁县| 泗阳县| 张家口市| 上杭县| 化德县| 尼勒克县| 陈巴尔虎旗| 宁国市| 永安市| 宝丰县| 临安市| 汉沽区| 金寨县| 红桥区| 海晏县| 武定县|