thank you very much.
is it make any sense that first_found return a list ?
i think that _first_ means that list will always contain 1 element.
On Friday, January 29, 2016 at 2:48:58 AM UTC+2, Brian Coca wrote:
>
> the lookup is returning a list, not a string, as a workaround:
>
> template: src={{ lookup('first_found', [ 'userparameter_' + item +
> '_' + ansible_pkg_mgr + '.j2', 'userparameter_' + item + '.j2' ])[0]
> }}
>
>
> --
> 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/0d19ac32-ec19-48c3-9982-11802305010f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.