# how fetch remore server /etc/ directories using ansible

**URL:** <https://forum.ansible.com/t/how-fetch-remore-server-etc-directories-using-ansible/36019>\
**Category:** Ansible Project\
**Created:** [November 21, 2021, 2:44pm UTC](https://forum.ansible.com/t/how-fetch-remore-server-etc-directories-using-ansible/36019 "2021-11-21T14:44:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [November 21, 2021, 2:44pm UTC](https://forum.ansible.com/t/how-fetch-remore-server-etc-directories-using-ansible/36019/1 "2021-11-21T14:44:49Z")

</div>

how fetch remore server /etc/ directories using ansible

I tried using fetch module but it only does with files. We need exactly same as what fetch doing but with all the files and directories.

on control machine we expect it should create directories with hostname and data in it

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [November 21, 2021, 5:25pm UTC](https://forum.ansible.com/t/how-fetch-remore-server-etc-directories-using-ansible/36019/2 "2021-11-21T17:25:45Z")

</div>

[https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize\_module.html](https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html)

---

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [November 22, 2021, 5:09pm UTC](https://forum.ansible.com/t/how-fetch-remore-server-etc-directories-using-ansible/36019/3 "2021-11-22T17:09:48Z")

</div>

Thanks a lot . @dick Visser. I will try and update you if it works.  
Also let me know how can i contrinute/donate to this help/assistance.
