Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

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 IT Expert By IT Expert 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)
  1. Home /
  2. Configuration Management Tool /
  3. 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)”.

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

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
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

  • Screenshot 2020 05 14 at 19.43.13
    Repo: How to setup Chef Repository Configuration Management Tool
  • screenshot 2020 04 18 at 00.01.07
    Different ways to check for Ansible syntax errors Configuration Management Tool
  • Opswork blog 1440x800 1
    AWS Opsworks For Chef Automate Configuration Management Tool
  • jmeterlogo 3
    Install and conduct performance testing using Apache JMeter on your Web App Configuration Management Tool
  • Create S3 Bucket with Terraform
    Create an S3 Bucket with Terraform AWS/Azure/OpenShift
  • 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

More Related Articles

Screenshot 2020 05 14 at 19.43.13 Repo: How to setup Chef Repository Configuration Management Tool
screenshot 2020 04 18 at 00.01.07 Different ways to check for Ansible syntax errors Configuration Management Tool
Opswork blog 1440x800 1 AWS Opsworks For Chef Automate Configuration Management Tool
jmeterlogo 3 Install and conduct performance testing using Apache JMeter on your Web App Configuration Management Tool
Create S3 Bucket with Terraform Create an S3 Bucket with Terraform AWS/Azure/OpenShift
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

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

Veeam Vanguard

  • create a Mapped Drive via GPO
    How to create a Mapped Drive via GPO Preferences Windows
  • KIOSK AssignedAccess
    How to set up a Single App Kiosk Mode Configuration using a Local Account / MDM Bridge WMI Provider Windows
  • Screenshot 2022 04 02 at 23.05.24
    How to apply Windows Updates with PowerShell Windows
  • 980239e9 cisco logo
    Security Best Practice to secure your Cisco Router and Switches Network | Monitoring
  • windows admin center banner 825x400 1 1
    Fix failed to create new Scheduled Task RemoteException Windows Server
  • Screenshot 2024 02 09 at 7.34.18 PM
    How to create a Logic App for monitoring tweets AWS/Azure/OpenShift
  • win10
    How to add a device to Windows Windows
  • discorddd
    Discord Installation Guide for Linux System Linux

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.