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

Summary

Ansible is a very powerful and versatile automation engine that can be used for a wide variety of tasks. Understanding the basics of how to work it is of paramount importance, before addressing the more complex challenges of playbook creation and large-scale automation. Ansible relies on a language called YAML, a simple-to-read (and write) syntax that supports the rapid development of easy-to-read and easy-to-maintain code and inherits a number of valuable features from the Python language that it is written in, including Jinja2 filtering.

In this chapter, you learned the fundamentals of working with various Ansible programs. You then learned about the YAML syntax and the ways that you can break down your code into manageable chunks to make it easier to read and maintain. We explored the use of ad hoc commands in Ansible, variable definition and structure, and how to make use of Jinja2 filters to manipulate the data in your playbooks.

In the next chapter, we will take a more in-depth look at Ansible inventories and explore some of the more advanced concepts of working with them that you may find useful.

主站蜘蛛池模板: 神池县| 博爱县| 鹰潭市| 铜陵市| 土默特右旗| 荃湾区| 聂拉木县| 阜康市| 焦作市| 和静县| 工布江达县| 鄢陵县| 兰州市| 横峰县| 易门县| 弥渡县| 长沙县| 宁南县| 磐石市| 白河县| 临西县| 桐城市| 瑞昌市| 即墨市| 阿坝县| 洛川县| 广安市| 南宫市| 漳平市| 南康市| 宣汉县| 广水市| 哈尔滨市| 孟津县| 德清县| 赣榆县| 康平县| 延庆县| 三穗县| 灌南县| 云龙县|