ansible.builtin.host_group_vars – In charge of loading group_vars and host_vars¶
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
Synopsis¶
Loads YAML vars into corresponding groups/hosts in group_vars/ and host_vars/ directories.
Files are restricted by extension to one of .yaml, .json, .yml or no extension.
Hidden (starting with ‘.’) and backup (ending with ‘~’) files and directories are ignored.
Only applies to inventory sources that are existing paths.
Starting in 2.10, this plugin requires whitelisting and is whitelisted by default.
Requirements¶
The below requirements are needed on the local controller node that executes this vars.
whitelist in configuration