Hi Michael
Ansible considers “yes” strings as True booleans but for comparison you can use the bool filter. Perhaps try something like this:
- debug: msg="run this task"
when: elasticsearch_purge_old_indices_node|bool
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/63f138f5-9447-4fbd-8cea-c368a7b1deb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.