ansible / ansible.builtin / v2.9.27 / inventory / yaml Uses a specific YAML file as an inventory source. | "added in version" 2.4 of ansible.builtin" Authors: unknownansible.builtin.yaml (v2.9.27) — inventory
pip
Install with pip install ansible==2.9.27
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.
yaml_extensions: default: - .yaml - .yml - .json description: list of 'valid' extensions for files containing YAML 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