# Recursive copy of dir

**URL:** <https://forum.ansible.com/t/recursive-copy-of-dir/12120>\
**Category:** Ansible Project\
**Created:** [December 5, 2012, 6:18pm UTC](https://forum.ansible.com/t/recursive-copy-of-dir/12120 "2012-12-05T18:18:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin\_fernandes](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@kevin\_fernandes](https://forum.ansible.com/u/kevin_fernandes)\
**Post date:** [December 5, 2012, 6:18pm UTC](https://forum.ansible.com/t/recursive-copy-of-dir/12120/1 "2012-12-05T18:18:28Z")

</div>

Hi All,

As I see that the copy module does not do a recursive copy from the m/c where the playbook runs to the target host. How does one achive recursive transfer of files with ansible? Examples would be helpful.

Regards,  
kevin

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [December 5, 2012, 6:23pm UTC](https://forum.ansible.com/t/recursive-copy-of-dir/12120/2 "2012-12-05T18:23:43Z")

</div>

I just use local action rsync or tar + copy module + untar, but it should be possible to use file globbing + with items + copy module also
