On 27.01.17 00:01 [email protected] wrote:

> What I would like to do now is walk through the results[] list and 
> extract the "rc" and "item" values, something along the line of
> this:
> 
>   - debug: var={{item.rc}}
>     with_items:
>         - result.results[*]
> 
> But of course that does not work.  So how can I walk through a list
> in this manner?  

First guess: Drop the "[*]". Ansible knows this is a list and should
use each element as "item".

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/72241b96-b387-5a34-b994-bef86e60633b%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to