{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/15706","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/15706/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/15706/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/15706/events","html_url":"https://github.com/ansible/ansible/issues/15706","id":152836589,"number":15706,"title":"Improve error: `Failed to connect to the host via ssh.` even without verbose","user":{"login":"nhooey","id":65458,"avatar_url":"https://avatars.githubusercontent.com/u/65458?v=3","gravatar_id":"","url":"https://api.github.com/users/nhooey","html_url":"https://github.com/nhooey","followers_url":"https://api.github.com/users/nhooey/followers","following_url":"https://api.github.com/users/nhooey/following{/other_user}","gists_url":"https://api.github.com/users/nhooey/gists{/gist_id}","starred_url":"https://api.github.com/users/nhooey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhooey/subscriptions","organizations_url":"https://api.github.com/users/nhooey/orgs","repos_url":"https://api.github.com/users/nhooey/repos","events_url":"https://api.github.com/users/nhooey/events{/privacy}","received_events_url":"https://api.github.com/users/nhooey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T17:58:37Z","updated_at":"2016-05-03T17:58:37Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Feature Idea\r\n\r\n##### ANSIBLE VERSION\r\n> 2.1.0\r\n\r\n##### CONFIGURATION\r\nn/a\r\n\r\n##### OS / ENVIRONMENT\r\nn/a\r\n\r\n##### SUMMARY\r\nAnsible obscures the real SSH error with or without verbose, and prints a useless error message. It should print the connection error even with verbose turned off, because it's always important to the user to know why the SSH connection failed.\r\n\r\n##### STEPS TO REPRODUCE\r\nRun a playbook to a host that can't be connected to with SSH.\r\n\r\n##### EXPECTED RESULTS\r\n```\r\nfatal: [name-of-host]: UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"SSH Failure: 'Connection timeout'\",\r\n    \"unreachable\": true\r\n}\r\n\r\nfatal: [name-of-host]: UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"SSH Failure: 'Denied (pubkey, password)'\",\r\n    \"unreachable\": true\r\n}\r\n\r\nfatal: [name-of-host]: UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"SSH Failure: 'Unknown host'\",\r\n    \"unreachable\": true\r\n}\r\n```\r\n\r\n##### ACTUAL RESULTS\r\n```\r\nfatal: [name-of-host]: UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"Failed to connect to the host via ssh.\",\r\n    \"unreachable\": true\r\n}\r\n```"}}