- Practical Ansible 2
- Daniel Oh James Freeman Fabio Alessandro Locati
- 261字
- 2021-06-24 16:06:48
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
- 大數據技術與應用基礎
- Project 2007項目管理實用詳解
- 21天學通JavaScript
- Python Artificial Intelligence Projects for Beginners
- 西門子S7-200 SMART PLC從入門到精通
- 基于ARM 32位高速嵌入式微控制器
- Excel 2007技巧大全
- 中國戰略性新興產業研究與發展·智能制造裝備
- Excel 2007終極技巧金典
- 工業機器人實操進階手冊
- 菜鳥起飛電腦組裝·維護與故障排查
- JSP通用范例開發金典
- Practical Network Automation
- R Statistics Cookbook
- 7天精通Photoshop CS5平面視覺設計