# Copying directories

**URL:** <https://forum.ansible.com/t/copying-directories/11840>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [August 29, 2012, 6:00pm UTC](https://forum.ansible.com/t/copying-directories/11840 "2012-08-29T18:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [August 29, 2012, 6:00pm UTC](https://forum.ansible.com/t/copying-directories/11840/1 "2012-08-29T18:00:00Z")

</div>

> From IRC, in tasks:

- local\_action: rsync \<stuff goes here\> ${inventory\_hostname} \<stuff  
goes here\>

(local\_action is an alias for "action:" with a "delegate\_to: 127.0.0.1")

---

<div class="post-metadata">

**Author:** ![Ali\_Asad\_Lotia](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@Ali\_Asad\_Lotia](https://forum.ansible.com/u/Ali_Asad_Lotia)\
**Post date:** [September 15, 2012, 1:03pm UTC](https://forum.ansible.com/t/copying-directories/11840/2 "2012-09-15T13:03:46Z")

</div>

Can this be done over ssh?  
Thanks,  
Ali

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [September 15, 2012, 3:08pm UTC](https://forum.ansible.com/t/copying-directories/11840/3 "2012-09-15T15:08:03Z")

</div>

> Can this be done over ssh?

Rsync works over SSH just fine, yes.

See here for options:

[http://linux.die.net/man/1/rsync](http://linux.die.net/man/1/rsync)

Unless I misunderstand the question?
