tasks:
- name: Launch EC2 instance
ec2:
key_name: "{{keypair}}"
group: default
count: "{{count}}"
instance_type: "{{instance_type}}"
instance_tags: '{"Name":
"{{item.names}}","Type":"{{tag_Type}}","Environment":"{{tag_Environment}}"}'
image: "{{image}}"
wait: true
region: "{{region}}"
aws_access_key: *****
aws_secret_key: *****
register: ec2
with_items:
- names: Ansible-1
- names: Ansible-2
*debug: var=ec2*
add the above bold line in your playbook, it will throw an output , paste
that here
On Thursday, April 27, 2017 at 2:41:09 AM UTC+5:30, balubhai555 wrote:
>
> Thanks for your reply,
>
> Will you please explain more. Thank you.
>
>
--
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/714c196b-b741-49ba-b721-a905de200bd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.