+

Search Tips   |   Advanced Search

ansible.builtin.yaml - Uses a specific YAML file as an inventory source.

This module is part of ansible-base and included in all Ansible installations. In most cases, you can use the short module name yaml even without specifying the collections: keyword. Despite that, we recommend you use the FQCN for easy linking to the module documentation and to avoid conflicting with other collections that may have the same module name.

New in version 2.4: of ansible.builtin


Synopsis


Parameters

Parameter Choices/Defaults Configuration Comments

yaml_extensions

list / elements=string

Default:

[".yaml", ".yml", ".json"]

ini entries:

[defaults]
yaml_valid_extensions = ['.yaml', '.yml', '.json']

[inventory_plugin_yaml]
yaml_valid_extensions = ['.yaml', '.yml', '.json']

env:ANSIBLE_YAML_FILENAME_EXT

env:ANSIBLE_INVENTORY_PLUGIN_EXTS

list of 'valid' extensions for files containing YAML



Notes


Examples