You are right, I tried and this works too, I think this is better 
solution!!! Thank you one more time!!!!

On Friday, January 20, 2017 at 7:08:50 PM UTC+4, Stankovic, Marko wrote:
>
> You're welcome. 
> I just figured out we were scratching our right ear with left hand. 
> The same result can be accomplished by using 
> with_items: "{{ array }}" 
> Then you can access the attributes by item.contactId and 
> item.contactAccount: 
>
>
> - set_fact: 
>    msg: "{{ item.contactId }}" 
>   with_items: "{{ array }}" 
>   when: item.contactAccount == 'somee...@somedomain.com' 
>
> Cheers, 
> Marko 
>
>
> ______________________________________________________________________________________________________
>  
>
>
> CONFIDENTIALITY NOTICE:  This message is the property of International 
> Game Technology PLC and/or 
> its subsidiaries and may contain proprietary, confidential or trade secret 
> information. 
> This message is intended solely for the use of the addressee. If you are 
> not the intended recipient 
> and have received this message in error, please delete this message from 
> your system. Any unauthorized 
> reading, distribution, copying, or other use of this message or its 
> attachments is strictly prohibited. 
>
>

-- 
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 
https://groups.google.com/d/msgid/ansible-project/f274f902-e8de-4c5e-a39e-5689d47a7a19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to