Hi ,
I am trying to provision my aws infrastructure using ansible and i wanted
to see if there is a way to include an Auto-incrementing Integer Assignment
to Hostvars. For ex:
<http://stackoverflow.com/questions/28789465/ansible-dynamic-inventory-auto-incrementing-integer-assignment-to-hostvars>
lets say if i have something like this
- ec2:
key_name: mykey
instance_type: t2.micro
image: ami-123456
wait: yes
group: webserver
count: 3
vpc_subnet_id: subnet-29e63245
assign_public_ip: yes
can it create instances with below names ?
dev-web-01
dev-web-02
dev-web-03
Thanks in advance for any help.
--
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/d61b9f65-ed0c-45e1-abbb-f0fa76ea6541%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.