OK, so i setup a new ubuntu serer and followed instructions on tying to 
domain and looks to be successful...here is the latest error:


root@ansible02:/etc/ansible# ansible windows -m win_ping -vvvv

Using /etc/ansible/ansible.cfg as config file

Loaded callback minimal of type stdout, v2.0

An exception occurred during task execution. The full traceback is:

Traceback (most recent call last):

  File "/usr/lib/pymodules/python2.7/ansible/executor/process/worker.py", 
line 114, in run

    self._shared_loader_obj,

  File "/usr/lib/pymodules/python2.7/ansible/executor/task_executor.py", 
line 119, in run

    res = self._execute()

  File "/usr/lib/pymodules/python2.7/ansible/executor/task_executor.py", 
line 366, in _execute

    self._connection = self._get_connection(variables=variables, 
templar=templar)

  File "/usr/lib/pymodules/python2.7/ansible/executor/task_executor.py", 
line 582, in _get_connection

    connection = self._shared_loader_obj.connection_loader.get(conn_type, 
self._play_context, self._new_stdin)

  File "/usr/lib/pymodules/python2.7/ansible/plugins/__init__.py", line 
326, in get

    self._module_cache[path] = 
self._load_module_source('.'.join([self.package, name]), path)

  File "/usr/lib/pymodules/python2.7/ansible/plugins/__init__.py", line 
313, in _load_module_source

    module = imp.load_source(name, path, module_file)

  File "/usr/lib/pymodules/python2.7/ansible/plugins/connection/winrm.py", 
line 28, in <module>

    import xmltodict

*ImportError: No module named xmltodict*


10.40.1.31 | FAILED! => {

    "failed": true, 

    "stdout": ""

}

root@ansible02:/etc/ansible# ansible-playbook -i hosts ipconfig.yml


PLAY [test raw module] 
*********************************************************


TASK [run ipconfig] 
************************************************************

*An exception occurred during task execution. To see the full traceback, 
use -vvv. The error was: ImportError: No module named xmltodict*

fatal: [10.40.1.31]: FAILED! => {"failed": true, "stdout": ""}


PLAY RECAP 
*********************************************************************

10.40.1.31                 : ok=0    changed=0    unreachable=0    failed=1  
 

On Wednesday, February 3, 2016 at 12:49:05 PM UTC-5, Joe Levis wrote:
>
> Right, so like I said in my previous response: make sure your Linux box is 
> registered on the Windows domain.
>
> Run 'dnsdomainname' to check if your Linux machine is joined to a domain.
> If not, you need to use something like PBIS to do so:
>
> https://community.spiceworks.com/how_to/80336-join-ubuntu-14-04lts-to-a-windows-domain-using-pbis-open
>
> -Joe
>
>
> On Wednesday, February 3, 2016 at 9:16:55 AM UTC-8, Nikhil Shah wrote:
>>
>> 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/6f542c58-676d-47e4-8a7f-362559122d43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to