- Practical Ansible 2
- Daniel Oh James Freeman Fabio Alessandro Locati
- 217字
- 2021-06-24 16:06:52
Summary
Creating and managing Ansible inventories is a crucial part of your work with Ansible, and hence we have covered this fundamental concept early in this book. They are vital as without them Ansible would have no knowledge of what hosts it is to run automation tasks against, yet they provide so much more than this. They provide an integration point with configuration management systems, they provide a sensible source for host-specific (or group-specific) variables to be stored, and they provide you with a flexible way of running this playbook.
In this chapter, you learned about creating simple static inventory files and adding hosts to them. We then extended this by learning how to add host groups and assign variables to hosts. We also looked at how to organize your inventories and variables when a single flat inventory file becomes too much to handle. We then learned how to make use of dynamic inventory files, before concluding with a look at useful tips and tricks such as combining inventory sources and using patterns to specify hosts, all of which will make how you work with inventories easier and yet simultaneously more powerful.
In the next chapter, we will learn how to develop playbooks and roles to configure, deploy, and manage remote machines using Ansible.
- 大學(xué)計(jì)算機(jī)信息技術(shù)導(dǎo)論
- Dreamweaver CS3網(wǎng)頁(yè)設(shè)計(jì)與網(wǎng)站建設(shè)詳解
- 精通Windows Vista必讀
- 計(jì)算機(jī)網(wǎng)絡(luò)應(yīng)用基礎(chǔ)
- 大數(shù)據(jù)安全與隱私保護(hù)
- 新編計(jì)算機(jī)圖形學(xué)
- Containers in OpenStack
- 網(wǎng)絡(luò)管理工具實(shí)用詳解
- 單片機(jī)原理實(shí)用教程
- 單片機(jī)技術(shù)項(xiàng)目化原理與實(shí)訓(xùn)
- Drupal高手建站技術(shù)手冊(cè)
- 工業(yè)機(jī)器人技術(shù)
- 數(shù)據(jù)結(jié)構(gòu)與算法(C++語(yǔ)言版)
- 運(yùn)動(dòng)控制系統(tǒng)應(yīng)用及實(shí)例解析
- 谷物干燥節(jié)能供熱技術(shù)與裝備