On 28. sep. 2016 19:25, Christopher Stobie wrote:
OK that makes total sense.
Follow up question, what is the syntax in ansible to iterate over every
entry in the array.
So for individual results you do ec2.results[0].instance_ids.
What do you do for all results or to loop over this to get every instance
id from multiple entries.
like ec2.results[i].instance_ids or something?
- debug: var=item.instance_ids
with_items: "{{ ec2.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/f7fd7d96-41c3-4684-e395-8dfa6a852140%40olstad.com.
For more options, visit https://groups.google.com/d/optout.