Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Configuration Management Tool » Ansible_user=UNREACHABLE {Failed to connect to the host via SSH: SSH: Could not resolve hostname (Name or service not known, unreachable true)
  • MV command in Linux
    Rename or Move Files or Directories in Linux with Bash Terminal Linux
  • 71PSZcv0RL. AC SX425
    How to disable unused Cisco Access Ports Network | Monitoring
  • Slide1 1
    How to manage Microsoft Defender Antivirus using Group Policy and Command Line Utility Anti-Virus Solution
  • adfs training
    Post-Deployment of Active Directory Federation Service (ADFS) Windows Server
  • win10
    How to add a device to Windows Windows
  • How to Remove Language Pack
    How to forcefully remove Language Pack on Windows 10 and 11 Windows
  • IIS Installed
    Add and remove IIS Web Server on Windows Server 2019 via the Server Manager and PowerShell Web Server
  • WhatsApp
    How to retrieve deleted WhatsApp messages on iPhone JIRA|Confluence|Apps

Ansible_user=UNREACHABLE {Failed to connect to the host via SSH: SSH: Could not resolve hostname (Name or service not known, unreachable true)

Posted on 17/04/202012/03/2024 Christian By Christian No Comments on Ansible_user=UNREACHABLE {Failed to connect to the host via SSH: SSH: Could not resolve hostname (Name or service not known, unreachable true)
Ansible_user

In this article, you will learn how to resolve “Ansible_user=UNREACHABLE {Failed to connect to the host via SSH: SSH: Could not resolve hostname (Name or service not known, unreachable true)”. Please see How to install and configure Ansible on Ubuntu, and Associate SSH Public key with Azure Linux VM. The following message below has a lot of errors (dependencies) associated.

Error: ansible_user=administrator | UNREACHABLE! => {
"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname ansible_user=administrator: Name or service not known",
"unreachable": true
UNREACHABLE

Note: The connection that is being initiated here is to a Windows machine.

Also, see how to Install and configure Ansible on Azure Virtual Machine, and how to fix “Ansible error: Server unreachable, ssl: auth method ssl requires a password“.

Solution to SSH Connection Failure in Ansible

To resolve this error, please follow the following steps. Ensure the inventory file is configured properly and ensure that the “ansible_connection=winrm” is included in your inventory. Domain authentication requires using krb5. On how to configure kerberos.

[win]
192.168.178.43
[win:vars]
ansible_user=administrator
ansible_password=xxxxxxxxxxx
ansible_port = 5986
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore

When this is configured correctly, the following error will disappear. Configure the remote host system to connect with the Ansible Control node(SSH Connection Failure in Ansible). This will permit the connection between the Windows host system and the Ansible server.

I hope you found this article useful in resolving the following error “Ansible_user=UNREACHABLE {Failed to connect to the host via SSH: SSH: Could not resolve hostname (Name or service not known, unreachable true)”.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Configuration Management Tool Tags:Configuration Management Tool, RemoteConnection

Post navigation

Previous Post: The plugin filter file/etc/ansible/plugin_filters(yml) does not exist – Skipping
Next Post: IP Address UNREACHABLE: HTTP connection pool Max exceeded

Related Posts

  • db nginxseriesanisibleplaybook 1540x748 1
    How to install and configure Ansible on Ubuntu Configuration Management Tool
  • sonarlite
    How to Setup SonarLint in VS Code for Your App Project Configuration Management Tool
  • Installing Jenkins
    How to Install and Configure Jenkins on Windows 11 Configuration Management Tool
  • images 1
    WARNING: The provided hosts list is empty only the localhost is available and note that the implicit localhost does not match all Configuration Management Tool
  • 1 ifg3ir3l 8ejus3pueqt0a
    Fix cannot find KDC for realm while getting initial credentials and kinit configuration file does not specify default realm Configuration Management Tool
  • 1 kajkbmlyehn0inifwrh 8w 1
    How to configure Kerberos for Ansible Authentication Configuration Management Tool

More Related Articles

db nginxseriesanisibleplaybook 1540x748 1 How to install and configure Ansible on Ubuntu Configuration Management Tool
sonarlite How to Setup SonarLint in VS Code for Your App Project Configuration Management Tool
Installing Jenkins How to Install and Configure Jenkins on Windows 11 Configuration Management Tool
images 1 WARNING: The provided hosts list is empty only the localhost is available and note that the implicit localhost does not match all Configuration Management Tool
1 ifg3ir3l 8ejus3pueqt0a Fix cannot find KDC for realm while getting initial credentials and kinit configuration file does not specify default realm Configuration Management Tool
1 kajkbmlyehn0inifwrh 8w 1 How to configure Kerberos for Ansible Authentication Configuration Management Tool

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • MV command in Linux
    Rename or Move Files or Directories in Linux with Bash Terminal Linux
  • 71PSZcv0RL. AC SX425
    How to disable unused Cisco Access Ports Network | Monitoring
  • Slide1 1
    How to manage Microsoft Defender Antivirus using Group Policy and Command Line Utility Anti-Virus Solution
  • adfs training
    Post-Deployment of Active Directory Federation Service (ADFS) Windows Server
  • win10
    How to add a device to Windows Windows
  • How to Remove Language Pack
    How to forcefully remove Language Pack on Windows 10 and 11 Windows
  • IIS Installed
    Add and remove IIS Web Server on Windows Server 2019 via the Server Manager and PowerShell Web Server
  • WhatsApp
    How to retrieve deleted WhatsApp messages on iPhone JIRA|Confluence|Apps

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.