New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localhost unreachable on Windows Subsystem for Linux (WSL2, Ubuntu) #69765
Comments
Files identified in the description: If these files are incorrect, please update the |
COMPONENT |
having exact same issue, expecting it to run locally without any ssh connection but getting this error |
Is This A Bug?Hi! Thanks very much for your submission to Ansible. It sincerely means a lot to us. We're not sure this is a bug, and we don't mean for this to be confrontational. Let's explain what we're thinking:
As such, we're going to close this ticket. However, we're open to being corrected, should you wish to discuss. You can stop by one of our two mailing lists
Comments on closed tickets aren't something we monitor, so if you do disagree with this, a mailing list thread is probably appropriate. Thank you once again for this and your interest in Ansible! |
(Re-posting the solutions I shared in the Google Groups. Hope this helps whoever encountered the same problem) Thanks For pointing the direction Jordan! I was able to solve the problem by installing libc6_2.31 on my WSL Ubuntu. The steps are as following: When I ran "ansible localhost -m ping" again, I was able to get the following: localhost | SUCCESS => { As Jordan mentioned, this is a problem on the WSL side rather than Ansible itself. Hope the above helps whoever encountered the same problem. |
Proposed solution also solved the issue for me: Windows 10 2004, WSL2, Ubuntu 20.04. |
SUMMARY
Unable to establish connection to localhost under Windows Subsystem for Linux (WSL, Ubuntu)
ISSUE TYPE
COMPONENT NAME
Network
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
OS:
OS Name: Microsoft Windows 10 Pro (Version 1909)
OS Version: 10.0.18363 N/A Build 18363
WSL:
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
STEPS TO REPRODUCE
Run this command:
EXPECTED RESULTS
The ping request successfully poerformed, and Ansible returns the following:
ACTUAL RESULTS
The ping request failed. The following error returned:
TROUBLESHOOT ACTIONS TAKEN SO FAR
OBSERVATIONS
The text was updated successfully, but these errors were encountered: