On 24. juli 2016 02:31, Anthony Cheng wrote:
Let's say if I got this ugly debug output (nested list?), how about would I
go to retrieve this value?
ok: [127.0.0.1] => {
"foo.stdout": [
[
[
"bar"
]
]
]
}
Tried:
with_items: "{{ foo.stdout }}"
with_items: "{{ foo.stdout[0] }}"
It's a list in a list in a list
with_items: "{{ foo.stdout[0][0] }}"
--
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/39a336e8-8310-2e45-8719-e32cd325b16d%40olstad.com.
For more options, visit https://groups.google.com/d/optout.