- Ansible Playbook Essentials
- Gourav Shah
- 119字
- 2021-07-16 20:47:48
Understanding roles
In real-life scenarios, we will mostly be configuring web servers, database servers, load balancers, middleware queues, and so on. If you take one step back and look at the big picture, you will realize that you are configuring groups of identical servers in a repeatable fashion.
To manage such infrastructures in the most efficient way, we need some abstraction which allows us to define what we need to configure in each of these groups, and call them by name. That's exactly what roles do. Ansible roles allow us to configure groups of nodes at the same time, without repeating ourselves. Roles also provide a way to create modular code, which then can then be shared and reused.
推薦閱讀
- 極簡(jiǎn)算法史:從數(shù)學(xué)到機(jī)器的故事
- 數(shù)字媒體應(yīng)用教程
- AIRAndroid應(yīng)用開(kāi)發(fā)實(shí)戰(zhàn)
- Learning AWS Lumberyard Game Development
- 信息安全技術(shù)
- ASP.NET Core 2 Fundamentals
- 智能手機(jī)APP UI設(shè)計(jì)與應(yīng)用任務(wù)教程
- R數(shù)據(jù)科學(xué)實(shí)戰(zhàn):工具詳解與案例分析
- 案例式C語(yǔ)言程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)
- JBoss:Developer's Guide
- Python函數(shù)式編程(第2版)
- Hacking Android
- Python應(yīng)用與實(shí)戰(zhàn)
- Web前端開(kāi)發(fā)精品課:HTML5 Canvas開(kāi)發(fā)詳解
- HTML5+jQuery Mobile移動(dòng)應(yīng)用開(kāi)發(fā)