- 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
推薦閱讀
- 極簡算法史:從數(shù)學(xué)到機(jī)器的故事
- Spring 5.0 Microservices(Second Edition)
- jQuery從入門到精通 (軟件開發(fā)視頻大講堂)
- Java:Data Science Made Easy
- Learn Programming in Python with Cody Jackson
- Java程序設(shè)計(jì):原理與范例
- 零基礎(chǔ)輕松學(xué)SQL Server 2016
- JBoss:Developer's Guide
- Python網(wǎng)絡(luò)爬蟲技術(shù)與應(yīng)用
- Visual Basic程序設(shè)計(jì)全程指南
- Scratch從入門到精通
- Python程序設(shè)計(jì)教程
- Python預(yù)測分析實(shí)戰(zhàn)
- Java多線程并發(fā)體系實(shí)戰(zhàn)(微課視頻版)
- Zend Framework 2 Cookbook