Guys Need help here I am posting /etc/ansible/hosts file for windows entry
is
[windows]
Lenovo-PC
Lenovo-PC entry is added in my /etc/hosts file
AND
/etc/ansible/windows.yml file is
ansible_user: Administrator
ansible_password:
ansible_port: 5985
ansible_connection: winrm
ansible_winrm_scheme: http
ansible_winrm_server_cert_validation: ignore
and run command
ansible windows -m win_ping
But Still GET ERROR
Lenovo-PC | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host
lenovo-pc port 22: Connection refused\r\n",
"unreachable": true
}
PLEASE HELLPPP!!!!!!!!
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/48fa09d8-7203-416c-bfa3-79494f095207%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.