ansible.builtin.type_debug filter – show input data type
Note
This filter plugin is part of ansible-core
and included in all Ansible
installations. In most cases, you can use the short
plugin name
type_debug
.
However, we recommend you use the Fully Qualified Collection Name (FQCN) ansible.builtin.type_debug
for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same filter plugin name.
Synopsis
Returns the equivalent of Python’s
type
function.
Input
This describes the input of the filter, the value before | ansible.builtin.type_debug
.
Parameter |
Comments |
---|---|
Variable or expression of which you want to determine type. |
Examples
# get type of 'myvar'
{{ myvar | type_debug }}
Return Value
Key |
Description |
---|---|
The Python ‘type’ of the Returned: success |