Forcing the data type
You can cast values as certain types. For example, if you expect the input “True” from avars_promptand you want Ansible to recognize it as a boolean value instead of a string:
If you want to perform a mathematical comparison on a fact and you want Ansible to recognize it as an integer instead of a string: