Hi,
Pretty new to Ansible, but enjoying it so far :)

I have a playbook that connects to a Windows server, creates a zip file of 
a specific folder, sub folders and files, then upload to the Ansible server.

The zip file is 46,588,472 bytes

When the Windows server is Server 2012 it works correctly.
However, when the server is Server 2008 SP2 or Server 2008 R2 it uploads 
42,467,328 bytes and times out every time.
The following error is raised on the Ansible server (RH 7):

Traceback (most recent call last):
  File 
"/usr/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py", 
line 513, in fetch_file
    result = self._winrm_exec(cmd_parts[0], cmd_parts[1:])
  File 
"/usr/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py", 
line 261, in _winrm_exec
    command_id = self.protocol.run_command(self.shell_id, 
to_bytes(command), map(to_bytes, args), console_mode_stdin=(stdin_iterator 
is None))
  File "/usr/lib/python2.7/site-packages/winrm/protocol.py", line 276, in 
run_command
    res = self.send_message(xmltodict.unparse(req))
  File "/usr/lib/python2.7/site-packages/winrm/protocol.py", line 207, in 
send_message
    return self.transport.send_message(message)
  File "/usr/lib/python2.7/site-packages/winrm/transport.py", line 184, in 
send_message
    response = self.session.send(prepared_request, 
timeout=self.read_timeout_sec)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 612, 
in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 490, 
in send
    raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(104, 'Connection reset by 
peer'))


The Fetch command in the playbook is:
  - fetch:
        src="S:/TEST/Data/TEST Automation 
Staging/test.co.uk-ansible-upload.zip"
        dest="/test/ansible/playbooks/test/staging/"
        flat=yes
        become=false

Is there some sort of limit in WinRM of around 40Mb (or perhaps a time out 
if Server 2012 uploads slightly quicker) for Server 2008 SP2 and Server 
2008 R2, that is raised/removed in Server 2012?

Any help gratefully appreciated.

Richie

-- 
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/99cd0ab8-daf8-4afd-9782-77526a7709f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to