Ansible

The value of a certain variable you use is the string "True". You would like the value to be a boolean. How would you cast it?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

{{ some_string_var | bool }}