title: Cannot connect to WindowsServer from Centos7 due to ProxyError
body: <p>I am trying to connect to Windows Server 2012 from my ansible server (Centos7).</p>
  
  <p>Let's assume its host is x and port is y <br>
  I managed to connect to other linux based servers but I cannot connect to the windows one.</p>
  
  <p>I followed <a href="http://docs.ansible.com/ansible/latest/intro_windows.html" rel="nofollow noreferrer">the tutorial here</a> and after all setups and configurations I get the following error:</p>
  
  <pre><code>root@localhost: ansible# ansible windows -i hosts -m win_ping --ask-vault-pass
  Vault password:
  WindowsServer | UNREACHABLE! =&gt; {
      "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',)))",
  </code></pre>
  
  <p>This is my group_vars/windows.yml file:</p>
  
  <pre><code># 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
  </code></pre>
  
  <p>This is my hosts file snippet:</p>
  
  <pre><code>[windows]
  WindowsServer ansible_host=x
  </code></pre>
  
  <p>I did configure windows server <a href="https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" rel="nofollow noreferrer">with this file</a>.</p>
  
  <p>Please help, I have no idea what to do to make the connection work.</p>