i have a script in which sometimes i need to create an ec2 instance and
sometimes an existing ec2 instance is retrieved. on both occasions, i do
some further processing on the output like the following:
- name: add hosts to group
add_host:
name: "{{ item.id }}"
ansible_host: "{{ item.private_ip }}"
group: windows
with_items: "{{ ec2_result.instances }}"
the above works when i am retrieving an existing ec2 instance, but does not
work when i am create a new one. can someone clarify what i am doing
wrong? or what the issue is?
--
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/b4b718a1-f741-4683-8a25-272ca06b42ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.