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.

Le vendredi 17 septembre 2021 à 06:30:01 UTC+2, rajthecomputerguy a écrit :

> First step is to check  if it is connecting without Ansible from your 
> server
>
> On Friday, September 17, 2021 at 9:24:59 AM UTC+5:30 [email protected] 
> wrote:
>
>> Is the server name resolvable? Can the computer ansible see the server? 
>> ------------------------------
>> *From:* [email protected] <[email protected]> on 
>> behalf of janani Shri <[email protected]>
>> *Sent:* Friday, September 17, 2021 3:48:20 PM
>> *To:* Ansible Project <[email protected]>
>> *Subject:* [ansible-project] Playbook not able to SSH to the hosts 
>>  
>> 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
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/42673227-343f-4118-bf86-b688a147469en%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/42673227-343f-4118-bf86-b688a147469en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2e98a0a5-0877-4d27-b444-22ed540a0479n%40googlegroups.com.

Reply via email to