one way to do this would be:
- ec2:
key_name: mykey
instance_type: t2.micro
image: ami-123456
wait: yes
group: webserver
exact_count: 1
count_tags:
Name: "{{ 'dev-web-' + item }}"
instance_tags:
Name: "{{ 'dev-web-' + item }}"
vpc_subnet_id: subnet-29e63245
assign_public_ip: yes
with_sequence: count=3
On Mon, May 25, 2015 at 7:45 AM, Barry Kaplan <[email protected]> wrote:
> I too wanted this. In the end I had to do without. It would be awesome if
> a count variable was exposed for use.
>
> --
> 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/6c5bf7dd-4b9c-4ff4-90e5-cf1cee5c609a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6c5bf7dd-4b9c-4ff4-90e5-cf1cee5c609a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAFUV_d6_5vPrzyNAf38211S2OopYhjY6Kbx1NxvT4gjEG8Pe8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.