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.

On Mon, Aug 24, 2015 at 6:19 PM, Erick Vitor de Barros
<erick.vi...@gmail.com> wrote:
> This is something I really want to know :)
>
> On Fri, Apr 3, 2015 at 8:53 AM, Nico K. <nkrabsh...@gmail.com> wrote:
>>
>> 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
>>
>> --
>> 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-project+unsubscr...@googlegroups.com.
>> To post to this group, send email to ansible-project@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.
>
>
> --
> 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-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> 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

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG2tFJxy2-%2BSA8%2Bfo5xR_oGRLU3J3hKcQYO%2BKwJJ%3D68N_Ad8Rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to