Ansible Windows 404 error

Hi,

I’m trying to do a proof of concept install of the new windows functionality of anisble.

I have tried Windows Server 2012 and 2008 r2 but I get the following errors back:

WIN-3Q6QUQU2T6P.cs29cloud.internal | FAILED => Traceback (most recent call last):
File “/usr/lib/python2.6/site-packages/ansible-1.7-py2.6.egg/ansible/runner/init.py”, line 526, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/usr/lib/python2.6/site-packages/ansible-1.7-py2.6.egg/ansible/runner/init.py”, line 628, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/usr/lib/python2.6/site-packages/ansible-1.7-py2.6.egg/ansible/runner/init.py”, line 799, in _executor_internal_inner
conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file)
File “/usr/lib/python2.6/site-packages/ansible-1.7-py2.6.egg/ansible/runner/connection.py”, line 34, in connect
self.active = conn.connect()
File “/usr/lib/python2.6/site-packages/ansible-1.7-py2.6.egg/ansible/runner/connection_plugins/winrm.py”, line 130, in connect
self.protocol = self._winrm_connect()
File “/usr/lib/python2.6/site-packages/ansible-1.7-py2.6.egg/ansible/runner/connection_plugins/winrm.py”, line 102, in _winrm_connect
raise exc
WinRMTransportError: Bad HTTP response returned from server. Code 404, Not Found

Any assistance gratefully received.

Ollie

What steps did you take to set up powershell remoting on the remote system?

Hi Ollie,

Have you seen the Windows guide? Be sure to set the Windows machines to allow powershell remoting and make sure to open up the firewall. See the below link for the guide.

http://docs.ansible.com/intro_windows.html#windows-system-prep