Hi,
I am a newbie to ansible
I have followed every steps on http://docs.ansible.com/intro_windows.html to config an ansible workstation which can operate on Windows.
Below is what I got
[root@ansible-test-1 ~]# ansible windows -i ~/hosts -m win_ping --ask-vault-pass -vvvv
Vault password:
<15.126.222.251> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO 15.126.222.251
<15.126.222.251> WINRM CONNECT: transport=plaintext endpoint=https://15.126.222.251:5986/wsman
15.126.222.251 | FAILED => Traceback (most recent call last):
File “/root/ansible/lib/ansible/runner/init.py”, line 566, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/root/ansible/lib/ansible/runner/init.py”, line 678, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/root/ansible/lib/ansible/runner/init.py”, line 849, in _executor_internal_inner
conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file)
File “/root/ansible/lib/ansible/runner/connection.py”, line 44, in connect
self.active = conn.connect()
File “/root/ansible/lib/ansible/runner/connection_plugins/winrm.py”, line 132, in connect
self.protocol = self._winrm_connect()
File “/root/ansible/lib/ansible/runner/connection_plugins/winrm.py”, line 90, in _winrm_connect
err_msg = str(exc.args[0])
IndexError: tuple index out of range
Any advices?
I am running ansible 1.8( from source) on Centos 6.3.
target machine is Windows 2008 R2 sp1