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

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
主站蜘蛛池模板: 揭阳市| 哈巴河县| 云龙县| 铜川市| 乐安县| 梁山县| 赤城县| 庆云县| 高雄市| 新龙县| 临漳县| 西乌珠穆沁旗| 富蕴县| 长治市| 额济纳旗| 盐源县| 南丹县| 资中县| 林西县| 庆阳市| 锦屏县| 万荣县| 定结县| 于都县| 渭源县| 峨山| 武义县| 宝应县| 扶余县| 苍山县| 长乐市| 祁东县| 沅江市| 民乐县| 东城区| 北辰区| 盐源县| 郑州市| 汨罗市| 海晏县| 米易县|