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

  • 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
主站蜘蛛池模板: 文水县| 贡嘎县| 永胜县| 从江县| 涿州市| 高雄市| 苗栗市| 泾源县| 文安县| 女性| 灵宝市| 乳山市| 明溪县| 绥芬河市| 高青县| 武义县| 鹿泉市| 得荣县| 通州区| 通城县| 临西县| 仁化县| 勃利县| 墨竹工卡县| 忻城县| 乐业县| 密山市| 嘉鱼县| 威信县| 庆元县| 威信县| 屏东县| 张家口市| 海宁市| 麻江县| 韩城市| 军事| 扬中市| 姜堰市| 化德县| 连州市|