官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 乡宁县| 衡阳县| 华亭县| 乐东| 洛浦县| 水城县| 营口市| 水城县| 大化| 崇义县| 都江堰市| 荥阳市| 张家川| 监利县| 祥云县| 西青区| 长葛市| 麟游县| 扎兰屯市| 靖远县| 阜康市| 云林县| 太仓市| 泉州市| 上林县| 侯马市| 怀安县| 辽宁省| 河北省| 晋州市| 南投市| 恩施市| 兴山县| 睢宁县| 连南| 镇康县| 湛江市| 信丰县| 阿拉善右旗| 彰化市| 四平市|