© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
B. Choi, E. MedinaIntroduction to Ansible Network Automationhttps://doi.org/10.1007/978-1-4842-9624-0_5

5. Understanding Data Types and File Formats for Ansible

Brendan Choi1   and Erwin Medina1
(1)
Sydney, NSW, Australia
 

This chapter covers data and data types used in Ansible. It begins by explaining what data is and its relationship with Ansible, followed by discussing Ansible’s dependency on Python data types and providing examples of basic Python data types. The chapter then delves into Ansible configuration files, including Ansible inventory in INI, JSON, and YAML formats, inventory priority, and the ansible.cfg file. It also provides YAML examples to ...

Get Introduction to Ansible Network Automation: A Practical Primer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.