ansible.builtin.yaml (v2.16.5) — inventory

Uses a specific YAML file as an inventory source.

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

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

YAML-based inventory, should start with the C(all) group and contain hosts/vars/children entries.

Host entries can have sub-entries defined, which will be treated as variables.

Vars entries are normal group vars.

Children are 'child groups', which can also have their own vars/hosts/children and so on.

File MUST have a valid extension, defined in configuration.

Inputs

    
yaml_extensions:
    default:
    - .yaml
    - .yml
    - .json
    description: list of 'valid' extensions for files containing YAML
    elements: string
    env:
    - name: ANSIBLE_YAML_FILENAME_EXT
    - name: ANSIBLE_INVENTORY_PLUGIN_EXTS
    ini:
    - key: yaml_valid_extensions
      section: defaults
    - key: yaml_valid_extensions
      section: inventory_plugin_yaml
    type: list