Ansible Windows 404 error

97 views
Skip to first unread message

Ollie Lawson

unread,
Jun 24, 2014, 7:08:49 AM6/24/14
to ansible...@googlegroups.com
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

Michael DeHaan

unread,
Jun 24, 2014, 3:39:30 PM6/24/14
to ansible...@googlegroups.com
What steps did you take to set up powershell remoting on the remote system?




--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0a459277-147d-49dc-b0b2-79d383e66cef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Durivage

unread,
Jun 24, 2014, 5:49:53 PM6/24/14
to ansible...@googlegroups.com
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.



--
Reply all
Reply to author
Forward
0 new messages