Discovering the data type
If you are unsure of the underlying Python type of a variable, you can use theansible.builtin.type_debugfilter to display it. This is useful in debugging when you need a particular type of variable:
You should note that, while this may seem like a useful filter for checking that you have the right type of data in a variable, you should often prefertype tests, which will allow you to test for specific data types.