Had a quick look at this in more detail.

Neither the ec2 nor the ec2_facts module expose this information. It is 
available but in particular adding it to ec2_facts module would require 
fundamental changes (as currently the ec2_facts module gets all of its 
information from logging onto the box and reading the metadata, whereas this 
information would only be available through talking to the API - see 
http://stackoverflow.com/questions/5251057/using-boto-to-find-to-which-device-and-ebs-volume-is-mounted).
 I'm not adverse to such a change but making it optional and non-breaking for 
other users of the module is probably the challenge. 

Returning the value from the ec2 module is probably quite straightforward, on 
the other hand.

Will

On 13 Apr 2014, at 10:14, Will Thames <[email protected]> wrote:

> Hi Christian,
> How would you like to obtain the information - at instance creation time or 
> at an arbitrary point in time later? (i.e. do you want to be able to get the 
> instance ID as a value returned by the ec2 module, or from ec2_facts?)
> 
> Will
> 
> On Friday, April 11, 2014 7:59:09 PM UTC+10, Christian Kaps wrote:
> Hi,
> 
> is there any possibility to get the id of the root EBS volume of a newly 
> created EC2 instance? I cannot find any documentation about it?
> 
> Thanks,
> Christian
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Ansible Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ansible-project/0vqsUHrn2AU/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ef9babed-2fb5-420d-b927-699bdc917673%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 [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/EFE8AFEC-C7E9-4B05-ADAE-CD14EEC52772%40thames.id.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to