# How to copy file from locate to remote host with dzdo method?

**URL:** <https://forum.ansible.com/t/how-to-copy-file-from-locate-to-remote-host-with-dzdo-method/19815>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [November 20, 2015, 10:54am UTC](https://forum.ansible.com/t/how-to-copy-file-from-locate-to-remote-host-with-dzdo-method/19815 "2015-11-20T10:54:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrey\_Maraev](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Andrey\_Maraev](https://forum.ansible.com/u/Andrey_Maraev)\
**Post date:** [November 20, 2015, 10:54am UTC](https://forum.ansible.com/t/how-to-copy-file-from-locate-to-remote-host-with-dzdo-method/19815/1 "2015-11-20T10:54:35Z")

</div>

Hello there!  
I try to use ansible-playbook. ( **ansible 1.9.4, Ubuntu 14.04** )

I have dzdo -l permission like: (root) /bin/cp \* /usr/local/bin  
So, I wanna copy a script file from local machine to remote /usr/local/bin plz see playbook.yml below:
