*Hi* 
I am trying to connect to Windows Server 2012 from my ansible server 
(Centos7).
Let's assume its host is x and port is y 
I managed to connect to other linux based servers but I cannot connect to 
the windows one. 
I followed the tutorial here: 
http://docs.ansible.com/ansible/latest/intro_windows.html and after all 
setups and configurations I get the following error:


root@localhost: ansible# ansible windows -i hosts -m win_ping --ask-vault-pass
Vault password:
WindowsServer | UNREACHABLE! => {
    "changed": false,
    "msg": "ssl: HTTPSConnectionPool(host='x', port=y): Max retries exceeded 
with url: /wsman (Caused by ProxyError('Cannot connect to proxy.', 
error('Tunnel connection failed: 403 Forbidden',)))",


This is my group_vars/windows.yml file:

# it is suggested that these be encrypted with ansible-vault:
# ansible-vault edit group_vars/windows.yml

ansible_user: Administrator
ansible_password: password
ansible_port: y
ansible_connection: winrm


This is my hosts file snippet:

[windows]
WindowsServer ansible_host=x


I did configure windows server with this file: 
ConfigureRemotingForAnsible.ps1 
<https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1>

Please help, I have no idea what to do to make the connection work.


I also asked this question here: 
https://stackoverflow.com/questions/45716102/ansible-cannot-connect-to-windowsserver-from-centos7

-- 
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/615e2055-3b85-4fc4-a864-781a574061e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to