Goal: conditionally apply a role, but not be required to define the var in 
every target env.

Can I default a var to empty or null if it isn't defined as 'bar'? e.g:

> - { role: somerole, when: foo == 'bar' | default([]) }

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d8058a7a-d5a8-45c8-936f-54eaa46b3882%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to