[WARNING]: It is unnecessary to use ‘{{’ in conditionals, leave variables in loop expressions bare.
I’m using with_items for conditions in the fail module and it seems that I can’t use bare expressions. I have a playbook that with actions that can only run if a number of pre-conditions have been met. Instead of defining N tasks to grep in a file I’m stashing the contents of the file and using multiple search conditions.
Is there a different/better way to do this type of testing?
Is there some way to do this without dereferenceing