Hi,
I am using ec2_remote_facts to find the ec2 facts of an instance based on
the tags.
- name: Search ec2
ec2_remote_facts:
filters:
"tag:Name": "{{hostname}}"
aws_access_key: "{{aws_access_key}}"
aws_secret_key: "{{aws_secret_key}}"
region: "{{aws_region}}"
register: ec2_info
Now I want to get the instance id of the instance id of that particular
host and store it in a variable to use it in my playbook.
Can someone please help in finding or extracting the instance id.
Thanks,
--
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/0b56ef47-2465-48a3-9371-f6dff1cf4f4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.