ansible.builtin.ini (v2.4.0.0-1) — inventory

Uses an Ansible INI file as inventory source.

| "added in version" 2.4 of ansible.builtin"

Authors: unknown

Install Ansible via pip

Install with pip install ansible==2.4.0.0.post1

Description

INI file based inventory, sections are groups or group related with special `:modifiers`.

Entries in sections C([group_1]) are hosts, members of the group.

Hosts can have variables defined inline as key/value pairs separated by C(=).

The C(children) modifier indicates that the section contains groups.

The C(vars) modifier indicates that the section contains variables assigned to members of the group.

Anything found outside a section is considered an 'ungrouped' host.

Values passed in using the C(key=value) syntax are interpreted as Python literal structure (strings, numbers, tuples, lists, dicts, booleans, None), alternatively as string. For example C(var=FALSE) would create a string equal to 'FALSE'. Do not rely on types set during definition, always make sure you specify type with a filter when needed when consuming the variable.