using ansible

running a task with 'when: users is defined' works fine for hosts that have 
that variable. for hosts that dont, the play still runs, but gives a 
warning that in the future, an undefined variable will be a fatal error. is 
there another way of running tasks based on the existence of a given var?

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 post to this group, send email to
To view this discussion on the web visit
For more options, visit

Reply via email to