I think you should run powershell script on your windows machine with 
-EnableCredSSP option like below.

powershell.exe -File ConfigureRemotingForAnsible.ps1 -EnableCredSSP

If you have already do this, it is helpful to run ansible module with 
-vvvvv option.

ansible windows -m win_ping -vvvvv

You can see the following statement on the command line if CredSSP 
authentification mode is properly configured.

WINRM CONNECT: transport=credssp endpoint=https://<hostname>:<port>/wsman

As a reference, below is my settings in group variable file:

ansible_port: 5986
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
ansible_winrm_transport: credssp

It is noted that I'm also using the same ansible version 2.3.1.0 on CentOS 
7.

-- 
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/19b6198d-081a-4319-a32f-e699be2c068e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to