copying files stuck after 5th attempt

Hello,

I have following Problem on ansible 2.5.0. I try to copy a folder from my ansible-server(debian) to a windows 10 client using winrm. the playbook itself works pefectly. the problem is, that it has to copy to 20 machines when running the playbook and it stucks after 5th machine. when re-running the playbook the next 5 machines get there files and its stucks afterward.

the output after the copying from the 5 machines was fine looks like this:

OSError: [Errno 2] No such file or directory: ‘/root/.ansible/tmp/ansible-local-16474ZG5NC1/tmpbhEdPb’
fatal: [MACHINE-IP-ADDRESS]: FAILED! => {
“changed”: true,
“dest”: “D:\DESTPATH”,
“msg”: “failed to create tmp zip file: [Errno 2] No such file or directory: ‘/root/.ansible/tmp/ansible-local-16474ZG5NC1/tmpbhEdPb’”,
“operation”: “folder_copy”,
“src”: “/SOURCE/PATH/FOLDER”
}

can anyone help to make this working in one step?

Ok, as I read everywhere that winrm is not made for perfomance copy, I decided to go with win_get_url module and put the file to copy on the webserver. Everything seems pretty smooth and i keep loving ansible and the windows modules, even if i used to manage linux servers.

You are right that win_copy isn’t very fast due to it running over WinRM but this issue has already been identified and fixed in 2.5 https://github.com/ansible/ansible/pull/37964. If you update to either 2.5.1 or 2.5.2 the issue will go away.

Thanks

Jordan