Hey Mitch, that would be greatly appreciated! I was thinking one of the anisble pro's would just be able to make it an option on the present ec2.ini script but I would definitely love to give yours a try. I will try to help out with any functionality...
Thanks a bunch, Colin On Tuesday, January 12, 2016 at 12:59:40 PM UTC-8, Mitch Anderson wrote: > > That was the reason I wrote my one AWS inventory script. Its far from > complete on some of the things I would like, but I've been using it for a > few months now. > > I'd be willing to share the script and minor configs required if you'd > like. > > -MItch > > On Tue, Jan 12, 2016 at 12:37 PM, Colin Byrne <[email protected] > <javascript:>> wrote: > >> Hey, >> >> So I would love to get the aws ec2 inventory working, but I cant seem to >> find a way to connect to my instances within a VPC subnet. >> >> I changed the ec2.ini configuration to: >> >> destination_variable = private_dns_name >> >> so that now the command 'ec2.py --list' now finds the instances, but I >> still cant figure out a way to route the ansible ssh requests through my >> aliases/gateway configuration. If I just keep my aliases in my >> ~/.ssh/config and my hosts in the static ansible hosts file, it of course >> finds them ok. The servers' names are the same as their alias in my ssh >> config and in the gateway forwarding, so if I could somehow modify the >> ec2.py script to use their 'Name' tag instead of their private ip, I think >> it would work. >> >> Assuming there is no easy way to do this, does anyone know which script / >> function or line in the ec2.py I should modify to try to make it work? >> >> Thanks for any help! >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/7cf307fa-4a91-4279-a63f-159a164eaa01%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/7cf307fa-4a91-4279-a63f-159a164eaa01%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 [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/c2a33791-c8f2-4658-9368-1094e978c952%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
