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

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
主站蜘蛛池模板: 云安县| 上虞市| 九寨沟县| 无极县| 长子县| 丰县| 思茅市| 大埔区| 清丰县| 灵璧县| 白城市| 曲阳县| 称多县| 龙陵县| 阜宁县| 上蔡县| 梁山县| 新乡县| 密山市| 开江县| 建湖县| 崇文区| 云阳县| 集安市| 志丹县| 句容市| 桓台县| 辛集市| 桐乡市| 来安县| 甘谷县| 海宁市| 自贡市| 区。| 阿拉善左旗| 德令哈市| 黎川县| 栾川县| 思南县| 平塘县| 潞西市|