Hi
I am running ansible 2.1.2.0 on centos7. The windows machine is running windows 10 with powershell 5.
I have installed pywinrm-0.2.2, included windows hostnames in the inventory file and also added group variables to this file for windows.
ansible_user=Administrator
ansible_password=password
ansible_port:=986
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore
I have also run the powershell script on the windows machine and received OK prompt.
I am doing this outside of a domain. If I ping the windows machine from centos outside of ansible I get replies. But with ansible I get
[root@centos7-ansible ~]# ansible mesh -m win_ping -v
Using /etc/ansible/ansible.cfg as config file
mesh | UNREACHABLE! => {
"changed": false,
"msg": "ssl: the specified credentials were rejected by the server",
"unreachable": true
}
Any ideas what I am doing wrong?
Regards,
John