Thanks for your response!

## Entire Inventory file -

[windows]
XX.XX.XX.XX


[winhost:vars]
ansible_user=mahesh
ansible_password=India@1234
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore


## Command used to ping windows servers -

ansible windows -m win_ping




On Wed, Jun 24, 2020 at 7:18 PM Dick Visser <[email protected]> wrote:

> - Is this your entire inventory file? If not please post that
> - What is the actual command you used to "ping" the windows machine?
>
> On Wed, 24 Jun 2020 at 15:18, Newbie <[email protected]> wrote:
>
>> Dear All,
>>
>> I have created my RHEL 8, AWS EC2 instances and Windows 2019 AWS EC2
>> instance
>>
>> And, have installed Ansible and followed the prerequisites on control
>> node.
>>
>> Equally I have created user and ran the script <
>> https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/
>> *ConfigureRemotingForAnsible.ps1*> from windows machine.
>>
>> Also installed Pywinrm on control node and updated inventory file
>> carefully as below:
>>
>> [winhost:vars]
>> ansible_user=mahesh
>> ansible_password=password
>> ansible_connection=winrm
>> ansible_winrm_server_cert_validation=ignore
>>
>> Now when I start ping my windows machine it is returning me an error: -
>>
>> UNREACHABLE! => {
>>     "changed": false,
>>     "msg": "Failed to connect to the host via ssh: ssh: connect to host
>> XX.XX.XX.XX port 22: Connection timed out",
>>     "unreachable": true
>> }
>>
>>
>> Though I mentioned the host vars section is: 
>> ansible_winrm_server_cert_validation=ignore,
>> it is still checking ssh and kept on faily.
>>
>> I request can someone suggest in this regards
>>
>> Thank you very much in advance for your suggestions!
>>
>> --
>> 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/143b71a0-ca40-4bc6-8a5b-eae0f3a8d982o%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/143b71a0-ca40-4bc6-8a5b-eae0f3a8d982o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Dick Visser
> Trust & Identity Service Operations Manager
> GÉANT
>
> --
> 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/CAL8fbwNeShmmdt5WiZj8xWGiJAz2urAojhSyqBtyeQ6MRMiEBw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAL8fbwNeShmmdt5WiZj8xWGiJAz2urAojhSyqBtyeQ6MRMiEBw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks & Regards,
Mahesh Babu Bitra
Mobile : +91 9836634455/7829254321
VCP5,VCA-DCV and ITIL2011

-- 
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/CAD2DYvX%3DpPGKCTcn5h3j1aC4KfxTd7_YNn%3DXE6ozcMUVpuu-og%40mail.gmail.com.

Reply via email to