On 17. mars 2017 11:27, Z-obaze wrote:
And with that output, i'd like to display the value of "yumstate" entry for
all of the items, here we have two items, but we could have 3, 4 or more.

Within my playbook i tried to do something like this, but of course it
doesn't work :

        - name: debug
          debug:
             var: 'requirements.results[*].results[*].yumstate'

I also tried with a loop, but I haven't found anything.

So does anyone have a clue to do this?

 - debug: var=item.results.0.yumstate
   with_items: "{{ requirements.results }}"

--
Kai Stian Olstad

--
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/d6d8765d-307b-7e50-2ee1-d492c970ad52%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to