Is there a way to get OS information from ec2.py dynamic inventory script?

36 views
Skip to first unread message

Adam R.

unread,
Jul 20, 2015, 5:16:54 PM7/20/15
to ansible...@googlegroups.com
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.

James Martin

unread,
Jul 20, 2015, 8:50:23 PM7/20/15
to ansible...@googlegroups.com
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.

Color Cloud

unread,
Jul 21, 2015, 12:16:11 PM7/21/15
to ansible...@googlegroups.com
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!

--
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 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/e782dffa-1dce-4d99-8f68-efbc4dbd8d5f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages