On 06.05.16 13:12 [email protected] wrote: > Hi, > > It is possible to select all the elements instead of specify one element? > > Working: > debug: msg="{{packages.results[0].stdout_lines}}" > > I've tried: > debug: msg="{{packages.results[].stdout_lines}}" - It returns 'list object > has no element ()' >
Just a guess:
debug: msg="{{item.stdout_lines}}"
with_items: packages.results
or just output the whole:
debug: var=packages
or
debug: var=packages.results
What do you want to achieve?
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 [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/572C846C.9010805%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
