Hi everyone, I have two Debian servers on EC2 instances in AWS. I'm using ansible to deploy to them. As far as I can tell they are configured the same (someone else set them up, but I've been trying to compare things in AWS console and also on the servers themselves). I am likely wrong about this, just can't find where the configuration is different.
The issue I'm having is that deploying to one server takes forever, and deploying to the other server is really quick. The hang up is happening within apt_repository. One server is attempting to connect using IPv6 first, and only when all of those time out does it try and succeed to download using an IPv4 address. The other server doesn't do this... it just using IPv4 and downloads instantaneously. I cannot figure out why these servers are handling the apt_repository module differently. Is there a some undocumented flag that I could pass to this module to force it to only use IPv4? Like when using wget, how you can pass --prefer-family=IPv4? I've looked through the Python code for this module and there doesn't seem to be an option for that. It just calls fetch_url. I suppose one thing I could do would be to pass the IPv4 address directly to apt_repository, but then if that changes I'll have to manually update again. I'd prefer DNS resolution to be working. Just not sure why it's not. Both of these servers are using the same network / vpc settings too. Just thought I'd put this out there in case anyone has some bright idea that I'm clearly not seeing. Thanks for your time. Sincerely, Eli -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e4056324-c535-49cb-bd00-3a3d3c7f426en%40googlegroups.com.
