EC2 with Volumes

29 views
Skip to first unread message

Nico K.

unread,
Apr 3, 2015, 7:53:56 AM4/3/15
to ansible...@googlegroups.com
Hi,

Another EC2 question, when creating an instance using the 'ec2' task and specifying the volumes inline is it possible to:

a) obtain the volume id's of the newly created volumes?
b) or alternatively immediately tag the volumes?

Thanks,
Nico

Erick Vitor de Barros

unread,
Aug 24, 2015, 5:19:40 PM8/24/15
to ansible...@googlegroups.com
This is something I really want to know :)

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/41114d16-659d-4f12-86f4-d57a52f53377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ivan S. Freitas

unread,
Aug 24, 2015, 5:30:54 PM8/24/15
to ansible...@googlegroups.com
AFAIK you can't do that using the ec2 module directly. However, you
can list all volume's ids using ec2_vol module, register the output to
a variable and tag it with ec2_tags (I think you may also need a
fairly recent version of ansible to be able to tag the volumes). I've
been using this at work to create instances with custom (large) disks
for databases without problems.
> https://groups.google.com/d/msgid/ansible-project/CAKz6g-1F5xf_SbGXkyvuTrp18e%2BdJVUKtvafzDECQLsnmB1cYQ%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Ivan Sichmann Freitas
Reply all
Reply to author
Forward
0 new messages