On 20.01.17 13:45 Stepan Harutyunyan wrote:

> when: array.{{item}}.contactAccount == 
> '**someema...@somedomain.com**'* 

Maybe the find filter does what you are looking for?

array.{{item}}.contactaccount.find('someemail') == 1

Untested!

This is not in the filter documentation, I found it in conditionals:
https://docs.ansible.com/ansible/playbooks_filters.html
https://docs.ansible.com/ansible/playbooks_conditionals.html

Johannes

-- 
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/df33b7a9-5ac2-9c13-a113-64c5f85cab0e%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to