Thank you, bcoca. Helpful as always!

On Friday, March 18, 2016 at 9:48:22 AM UTC-4, Brian Coca wrote:
>
> you are referencing it incorrectly, staff is a list not a dictionary, also 
> I think you want the "current item's state":
>
> when: item.state == 'present'
>
> assuming you want to execute the task only for those entries that have 
> that state.
>
>
> ----------
> 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 [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/6eb972bf-d0d0-4e56-96a1-0e9ade7a0090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to