Ignore_errors is taking yes or no, because simply put there isn’t any other answer possible to “Do you want me to ignore the errors?” yes/no. You are answering with “Mooo” and the system doesnt speak cowish, yet
I’m interested in knowing why do you want to let ignore_errors take a variable?
You are setting test_err to the *string* yes, but ingore_errors is
looking for a boolean expression. Also, you don't need to using the
"{{ }}" syntax in ignore_errors since it is already using jinja2. Try
using the "bool" filter:
The last time I needed to have conditional ignore_errors, because that option did not accept a variable I had to duplicate the task in question. One version of the task had ignore_errors: yes and had a conditional when: my_var | bool and the other had no such setting and the conditional when: not my_var | bool.