# Playbook not able to SSH to the hosts

**URL:** <https://forum.ansible.com/t/playbook-not-able-to-ssh-to-the-hosts/35752>\
**Category:** Ansible Project\
**Created:** [September 17, 2021, 3:48am UTC](https://forum.ansible.com/t/playbook-not-able-to-ssh-to-the-hosts/35752 "2021-09-17T03:48:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![janani\_Shri](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@janani\_Shri](https://forum.ansible.com/u/janani_Shri)\
**Post date:** [September 17, 2021, 3:48am UTC](https://forum.ansible.com/t/playbook-not-able-to-ssh-to-the-hosts/35752/1 "2021-09-17T03:48:20Z")

</div>

I see this error when running playbook against my hosts, please assist

Failed to connect to the host via ssh: ssh: Could not resolve hostname hostname.acx: Name or service not known

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [September 17, 2021, 3:54am UTC](https://forum.ansible.com/t/playbook-not-able-to-ssh-to-the-hosts/35752/2 "2021-09-17T03:54:08Z")

</div>

Is the server name resolvable? Can the computer ansible see the server?

---

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [September 17, 2021, 4:30am UTC](https://forum.ansible.com/t/playbook-not-able-to-ssh-to-the-hosts/35752/3 "2021-09-17T04:30:01Z")

</div>

First step is to check if it is connecting without Ansible from your server

---

<div class="post-metadata">

**Author:** ![steve\_missoh](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@steve\_missoh](https://forum.ansible.com/u/steve_missoh)\
**Post date:** [September 18, 2021, 11:48pm UTC](https://forum.ansible.com/t/playbook-not-able-to-ssh-to-the-hosts/35752/4 "2021-09-18T23:48:56Z")

</div>

You can also use verbose when running the playbook. ( -vvv )  
It may help you pinpoint the issue.  
I suspect Its either a resolution problem as pointed by rajthecomputerguy or an inventory problem.
