Bookmark this page

Defining Ansible's Scope

Objectives

After completing this section, you should be able to identify the data files used to define Ansible's scope.

Ansible File and Data Formats

It helps to be familiar with the file and data formats used by Ansible. Here is a list of formats, broken down with sublists describing where each format is used:

  • INI format

    • The Ansible configuration file, ansible.cfg

    • Inventory files (inventory files may also use YAML format)

  • YAML

    • Playbook files

    • Inventory files, optionally

    • Other included files, such as role files

  • JSON

    • The ansible-playbook program returns variable data in JSON form

Revision: do457-2.5-4693601