- 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
推薦閱讀
- Kubernetes實(shí)戰(zhàn)
- JavaScript語(yǔ)言精髓與編程實(shí)踐(第3版)
- 營(yíng)銷(xiāo)數(shù)據(jù)科學(xué):用R和Python進(jìn)行預(yù)測(cè)分析的建模技術(shù)
- 數(shù)據(jù)結(jié)構(gòu)簡(jiǎn)明教程(第2版)微課版
- Python高級(jí)機(jī)器學(xué)習(xí)
- Kotlin Standard Library Cookbook
- Linux操作系統(tǒng)基礎(chǔ)案例教程
- Mastering JavaScript Design Patterns(Second Edition)
- C++ Application Development with Code:Blocks
- Python Projects for Kids
- 你好!Python
- Tkinter GUI Programming by Example
- Developing RESTful Web Services with Jersey 2.0
- Python算法交易實(shí)戰(zhàn)
- 匯編語(yǔ)言程序設(shè)計(jì)教程