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.
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
Subreddit
Post Details
- Posted
- 11 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/ansible/com...