Below is the configuration and its corresponding error,
[windows]
192.168.1.102
[windows:vars]
ansible_ssh_user=smodak
ansible_ssh_pass=******
ansible_ssh_port=5986
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore
Below is the configuration and its corresponding error,
[windows]
192.168.1.102
[windows:vars]
ansible_ssh_user=smodak
ansible_ssh_pass=******
ansible_ssh_port=5986
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore
Your config should look like this:
ansible_user: username
#password goes here when you don’t want to use -k option.
ansible_password: password
ansible_port: 5986
ansible_connection: winrm
ansible_winrm_transport: kerberos
ansible_winrm_scheme: https
ansible_winrm_server_cert_validation: ignore
ansible_winrm_kerberos_delegation: true
And you need to run the script https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 First
What happends when you run “telnet 192.168.1.102” on the ansible controller box?
On the windows box, did you run the script ConfigureRemotingForAnsible.ps1 which you can obtain from here
https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1