a) you cannot make a role conditional, any 'when' is just applied to the
tasks in the role
b) with_ runs before when: (so you can make execution conditional by item)
c) use |default({}) to skip the task and avoid the error

Brian Coca

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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to