Hey, You can use ec2_tag module, Go thru the link below for detailed explanation -
http://docs.ansible.com/ansible/ec2_tag_module.html On Thursday, March 23, 2017 at 2:23:03 AM UTC+5:30, balubhai555 wrote: > > *Hello Team, * > > *I got a requirement to create 'n' number of AWS ec2 instances and with > different name to each ec2 instance. I have tried different ways but got > failures.* > > *So will you please suggest me how to create different ec2 instances with > different names using "Loops" or any other modules in Ansible.* > > *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/76bc54f3-c0f8-4a64-a70c-6b1edf57db40%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
