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

Understanding the Fundamentals of Ansible

Ansible is, at its heart, a simple framework that pushes a small program called an Ansible module to target nodes. Modules are at the heart of Ansible and are responsible for performing all of the automation's hard work. The Ansible framework goes beyond this, however, and also includes plugins and dynamic inventory management, as well as tying all of this together with playbooks to automate infrastructure provisioning, configuration management, application deployment, network automation, and much more, as shown:

Ansible only needs to be installed on the management node; from there, it distributes the required modules over the network's transport layer (usually SSH or WinRM) to perform tasks and deletes them once the tasks are complete. In this way, Ansible retains its agentless architecture and does not clutter up your target nodes with code that might be required for a one-off automation task.

In this chapter, you will learn more about the composition of the Ansible framework and its various components, as well as how to use them together in playbooks written in YAML syntax. So, you will learn how to create automation code for your IT operations tasks and learn how to apply this using both ad hoc tasks and more complex playbooks. Finally, you will learn how Jinja2 templating allows you to repeatably build dynamic configuration files using variables and dynamic expressions.

In this chapter, we will cover the following topics:

  • Getting familiar with the Ansible framework
  • Exploring the configuration file
  • Command-line arguments
  • Defining variables
  • Understanding Jinja2 filters
主站蜘蛛池模板: 谢通门县| 桐柏县| 绍兴市| 清水河县| 区。| 德钦县| 浮梁县| 钦州市| 湖州市| 修水县| 安龙县| 房山区| 辽宁省| 松江区| 邹城市| 吉林市| 水富县| 宣恩县| 新泰市| 乌拉特后旗| 大关县| 崇州市| 新郑市| 太谷县| 景洪市| 阜新市| 惠来县| 清徐县| 德昌县| 垣曲县| 太和县| 萨嘎县| 太湖县| 蕉岭县| 镇宁| 大丰市| 沐川县| 社会| 常熟市| 开江县| 富蕴县|