+

Search Tips   |   Advanced Search

ansible.builtin.vars - Lookup templated value of variables

This module is part of ansible-base and included in all Ansible installations. In most cases, you can use the short module name 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.5: of ansible.builtin


Synopsis


Parameters

Parameter Choices/Defaults Configuration Comments

_terms

string / required

The variable names to look up.

default

string

What to return if a variable is undefined.

If no default is set, it will result in an error if any of the variables is undefined.



Examples


Return Values

Common return values are documented here, the following are the fields unique to this lookup:

Key Returned Description

_value

list / elements=raw

success

value of the variables requested.




Authors