Note
This module is part of ansible-base
and included in all Ansible installations. In most cases, you can use the short module name host_group_vars 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
The below requirements are needed on the local controller node that executes this vars.
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
_valid_extensions list / elements=string | Default: [".yml", ".yaml", ".json"] | ini entries: [yaml_valid_extensions] env:ANSIBLE_YAML_FILENAME_EXT | Check all of these extensions when looking for 'variable' files which should be YAML or JSON or vaulted versions of these. This affects vars_files, include_vars, inventory and vars plugins among others. |
stage string added in 2.10 of ansible.builtin |
| ini entries: [vars_host_group_vars] env:ANSIBLE_VARS_PLUGIN_STAGE | Control when this vars plugin may be executed. Setting this option to all will run the vars plugin after importing inventory and whenever it is demanded by a task.Setting this option to task will only run the vars plugin whenever it is demanded by a task.Setting this option to inventory will only run the vars plugin after parsing inventory.If this option is omitted, the global RUN_VARS_PLUGINS configuration is used to determine when to execute the vars plugin. |
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/ansible/builtin/host_group_vars_vars.html