Discussion:
[ansible-project] Is there a way to get OS information from ec2.py dynamic inventory script?
Adam R.
2015-07-20 21:16:54 UTC
Permalink
Hello,

I would like to know if it is possible to get OS information from the AWS
ec2 dynamic inventory script? Like OS distribution. Or how do you get OS
information before sshing the host?


Thank you.


B.R.
--
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+***@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/f9414ca5-89de-4a82-9704-357ac07dc4fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
James Martin
2015-07-21 00:50:23 UTC
Permalink
You could modify the ec2.py script so that it checks he ec2_image_id and
does some logic based around the OS associated with the ec2_image_id.
Post by Adam R.
Hello,
I would like to know if it is possible to get OS information from the AWS
ec2 dynamic inventory script? Like OS distribution. Or how do you get OS
information before sshing the host?
Thank you.
B.R.
--
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+***@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/e782dffa-1dce-4d99-8f68-efbc4dbd8d5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Color Cloud
2015-07-21 16:16:02 UTC
Permalink
Hello James,

Thats a good idea. We have like 23 different images installed. Maybe i can
do some logic to process only the ones that are different and process the
others as always. Thank you!
Post by James Martin
You could modify the ec2.py script so that it checks he ec2_image_id and
does some logic based around the OS associated with the ec2_image_id.
Post by Adam R.
Hello,
I would like to know if it is possible to get OS information from the AWS
ec2 dynamic inventory script? Like OS distribution. Or how do you get OS
information before sshing the host?
Thank you.
B.R.
--
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/4UWQNWPIvog/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/e782dffa-1dce-4d99-8f68-efbc4dbd8d5f%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/e782dffa-1dce-4d99-8f68-efbc4dbd8d5f%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 ansible-project+***@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/CAHvAF2kowc650_aZ0bZiUuJ4ehSHa9PBOxwYHP3%2B%3DMStzABvfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...