Skip to content

Instantly share code, notes, and snippets.

@pspravin
Created April 24, 2017 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pspravin/e4e71f7a30f2e555af327474604a3238 to your computer and use it in GitHub Desktop.
Save pspravin/e4e71f7a30f2e555af327474604a3238 to your computer and use it in GitHub Desktop.
Error on ansible -m ping all
[opc@vm04 ansible]$ ansible -m ping all
app02 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname app02: Name or service not known\r\n",
"unreachable": true
}
db01 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname db01: Name or service not known\r\n",
"unreachable": true
}
app01 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname app01: Name or service not known\r\n",
"unreachable": true
}
lb01 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname lb01: Name or service not known\r\n",
"unreachable": true
}
control | SUCCESS => {
"changed": false,
"ping": "pong"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment