# copying files stuck after 5th attempt

**URL:** <https://forum.ansible.com/t/copying-files-stuck-after-5th-attempt/27454>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [May 4, 2018, 9:36am UTC](https://forum.ansible.com/t/copying-files-stuck-after-5th-attempt/27454 "2018-05-04T09:36:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benny\_L](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Benny\_L](https://forum.ansible.com/u/Benny_L)\
**Post date:** [May 4, 2018, 9:36am UTC](https://forum.ansible.com/t/copying-files-stuck-after-5th-attempt/27454/1 "2018-05-04T09:36:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Benny\_L](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Benny\_L](https://forum.ansible.com/u/Benny_L)\
**Post date:** [May 4, 2018, 10:45am UTC](https://forum.ansible.com/t/copying-files-stuck-after-5th-attempt/27454/2 "2018-05-04T10:45:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [May 4, 2018, 11:49am UTC](https://forum.ansible.com/t/copying-files-stuck-after-5th-attempt/27454/3 "2018-05-04T11:49:49Z")

</div>

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](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
