Just an update, but still having issues....I realized I was using ansible 1.9.4 and the syntax is a bit different than ansible 2.0 (e.g ansible_ssh_user vs. ansible_user), now seeing this error:
[root@bamagent06 ansible]# ansible windows -m win_ping -vvvv <XX.XX.XX.XX> ESTABLISH WINRM CONNECTION FOR USER: on PORT 5986 TO XX.XX.XX.XX <XX.XX.XX.XX> WINRM CONNECT: *transport=kerberos* endpoint=https://XX.XX.XX.XX:5986/wsman XX.XX.XX.XX | FAILED => Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 586, in _executor exec_rc = self._executor_internal(host, new_stdin) File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 789, 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.7/site-packages/ansible/runner/__init__.py", line 968, in _executor_internal_inner conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file, delegate_host) File "/usr/lib/python2.7/site-packages/ansible/runner/connection.py", line 52, in connect self.active = conn.connect() File "/usr/lib/python2.7/site-packages/ansible/runner/connection_plugins/winrm.py", line 140, in connect self.protocol = self._winrm_connect() File "/usr/lib/python2.7/site-packages/ansible/runner/connection_plugins/winrm.py", line 96, in _winrm_connect protocol.send_message('') File "/usr/lib/python2.7/site-packages/winrm/protocol.py", line 193, in send_message return self.transport.send_message(message) File "/usr/lib/python2.7/site-packages/winrm/transport.py", line 269, in send_message krb_ticket = KerberosTicket(self.krb_service) File "/usr/lib/python2.7/site-packages/winrm/transport.py", line 205, in __init__ kerberos.authGSSClientStep(krb_context, '') GSSError: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('*Server not found in Kerberos database*', -1765328377)) On Tuesday, February 2, 2016 at 4:01:55 PM UTC-5, Nikhil Shah wrote: > > > *Nshah* > > Feb 2, 12:42 > > Hello, > > I followed the guidelines in setting up a windows node. > http://docs.ansible.com/ansible/intro_windows.html#windows-system-prep > > I am using Windows 2008 R2, which had PowerShell 2.0 installed; I upgraded > to PowerShell 4.0 (since the requirements said PowerShell 3.0).... > > When trying to run ansible, I am running the following and getting the > below listed error message: > > ansible-playbook -i hosts ipconfig.yml --ask-vault > Vault password: > > PLAY [test raw module] > ******************************************************** > > TASK: [run ipconfig] > ********************************************************** > fatal: [qa-codegen01.theorchard.local] => 500 WinRMTransport. [Errno 111] > Connection refused > > FATAL: all hosts have already failed -- aborting > > > > Note - I went ahead and enabled winRM and configured with the following > settings: > > winrm quickconfig -q > > winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}' > > winrm set winrm/config '@{MaxTimeoutms="1800000"}' > > winrm set winrm/config/service '@{AllowUnencrypted="true"}' > > winrm set winrm/config/service/auth '@{Basic="true"}' > > > -- 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/618ef0a8-350b-4471-ae61-f96ac7b65475%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
