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

  • Ansible Playbook Essentials
  • Gourav Shah
  • 116字
  • 2021-07-16 20:47:48

Chapter 2. Going Modular with Ansible Roles

In the last chapter, you learned about writing a simple playbook with Ansible. You also learned about the concepts of plays which map hosts to tasks. Writing tasks in a single playbook may work fine for a very simple setup. However, if we have multiple applications spanning across number of hosts, this will quickly become unmanageable.

In this chapter, you will be introduced to the following concepts:

  • What makes a role and what are roles used for?
  • How to create roles to provide abstraction?
  • Organizing content to provide modularity
  • Using include statements
  • Writing simple tasks and handlers
  • Installing packages, managing services, and serving files with Ansible modules
主站蜘蛛池模板: 内乡县| 昂仁县| 手游| 张家川| 乌鲁木齐市| 黑山县| 克拉玛依市| 隆回县| 台东市| 永康市| 土默特右旗| 霍州市| 泾源县| 中方县| 新密市| 鄂托克前旗| 焦作市| 库尔勒市| 吉安县| 潜江市| 临海市| 毕节市| 辽阳市| 长岛县| 隆德县| 甘谷县| 荃湾区| 萨迦县| 鄂伦春自治旗| 丰镇市| 丽水市| 昌吉市| 昌平区| 余姚市| 甘洛县| 太谷县| 武清区| 浠水县| 隆化县| 澜沧| 泰宁县|