I found that the inline lookup "src={{
lookup('first_found', ['path/to/zones/' +
item
+ '.db'
, 'path/to/zones/default + '.db'])
}}" did not quite work for me.
The following example did the trick (for me) tho.
As an example:
> - name: Context.xml
> template: src={{ item.1 }}
> dest=/opt/tomcat-{{item.0.name}}/conf/context.xml
> with_nested:
> - datastructureofsomekind
> - lookup('first_found', ['../../templates/' + env + '/context.xml',
> '../../templates/tomcat/context.xml' ])
>
--
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/b213b365-7e33-4e4f-9fa7-fc67dab01833%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.