Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
Failed to connect to the host via ssh: connection timed out
Post Flair (click to view more posts with a particular flair)
Post Body

I'm very new to Ansible and trying to self teach through the docs but currently am stuck on this error when trying to ping my inventory.ini file. The error happens for all 3 addresses in inventory.

[myhosts]
192.0.2.50
192.0.2.51
192.0.2.52

192.0.2.50 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: ssh: connect to host 192.0.2.50 port 22: Connection timed out",
    "unreachable": true
}

I am currently running the playbook through VSCode and opened with WSL terminal on a Win10 machine. I have my ssh key in the home folder but not sure what to do to alleviate the issue. I have installed both openssh server and openssh client. Spent a good 45 min looking and trying different solutions but no luck.

This is what I'm currently stuck on

https://docs.ansible.com/ansible/latest/getting_started/get_started_inventory.html

Update : Got it fixed. Will post a solution after work

Author
Account Strength
100%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
9,114
Link Karma
553
Comment Karma
8,165
Profile updated: 2 days ago
Posts updated: 1 month ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 months ago