- 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
推薦閱讀
- Cocos2d-x游戲開發(fā):手把手教你Lua語言的編程方法
- HTML5+CSS3基礎(chǔ)開發(fā)教程(第2版)
- BeagleBone Media Center
- concrete5 Cookbook
- VMware虛擬化技術(shù)
- Learning Hunk
- 程序設(shè)計基礎(chǔ)教程:C語言
- 軟件品質(zhì)之完美管理:實(shí)戰(zhàn)經(jīng)典
- HTML5 APP開發(fā)從入門到精通(微課精編版)
- Swift語言實(shí)戰(zhàn)晉級
- Application Development with Swift
- 超簡單:用Python讓Excel飛起來(實(shí)戰(zhàn)150例)
- Unity 3D UI Essentials
- PHP典型模塊與項(xiàng)目實(shí)戰(zhàn)大全
- Selenium Essentials