Hi,
Just a quick suggestion, but the ansible_port you've set is not the
default. Have you changed it? If not, it should be *5986* not *986*.
Johnny :)
On Thursday, January 26, 2017 at 9:09:49 AM UTC, norricorp wrote:
>
> 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
>
>
--
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/94a5171e-57ac-4310-b4ec-9e8d375ef8ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.