# How to copy files om remote host via dzdo privileges

**URL:** <https://forum.ansible.com/t/how-to-copy-files-om-remote-host-via-dzdo-privileges/19814>\
**Category:** Ansible Project\
**Created:** [November 20, 2015, 10:44am UTC](https://forum.ansible.com/t/how-to-copy-files-om-remote-host-via-dzdo-privileges/19814 "2015-11-20T10:44:22Z")\
**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:44am UTC](https://forum.ansible.com/t/how-to-copy-files-om-remote-host-via-dzdo-privileges/19814/1 "2015-11-20T10:44:22Z")

</div>

Hello there!  
I try to use ansible-playbook.

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:
