# using files folder for storing files

**URL:** <https://forum.ansible.com/t/using-files-folder-for-storing-files/24295>\
**Category:** Ansible Project\
**Created:** [April 24, 2017, 3:37pm UTC](https://forum.ansible.com/t/using-files-folder-for-storing-files/24295 "2017-04-24T15:37:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 24, 2017, 3:37pm UTC](https://forum.ansible.com/t/using-files-folder-for-storing-files/24295/1 "2017-04-24T15:37:33Z")

</div>

when we create a roles folder, there is a folder called files in it, can i use it for storing zip files or whatever i would like to store …if yes how can i reference that in playbook, should i mention the location or is there an ansible way of referring it

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [April 24, 2017, 3:44pm UTC](https://forum.ansible.com/t/using-files-folder-for-storing-files/24295/2 "2017-04-24T15:44:23Z")

</div>

[https://docs.ansible.com/ansible/playbook\_pahting.html](https://docs.ansible.com/ansible/playbook_pahting.html)

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 24, 2017, 4:06pm UTC](https://forum.ansible.com/t/using-files-folder-for-storing-files/24295/3 "2017-04-24T16:06:07Z")

</div>

pahting should be changed to pathing 😛 and also i dont know how to use it in playbook

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 25, 2017, 6:28am UTC](https://forum.ansible.com/t/using-files-folder-for-storing-files/24295/4 "2017-04-25T06:28:41Z")

</div>

How we should use the files folder created under roles, if i am downloading a file from url and want to save it under the files folder, how can i mention that in playbook, should that be the full path? or is there an ansible way of doing it?

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [April 25, 2017, 7:01am UTC](https://forum.ansible.com/t/using-files-folder-for-storing-files/24295/5 "2017-04-25T07:01:42Z")

</div>

I probably wouldn’t do that as I want to keep my ansible roles and playbooks in source control. So I would probably create a downloads folder on my ansible controller in some known location that I could either hard code into my playbooks - something like /usr/share/downloads perhaps or alternatively set the path using a group variable.

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 25, 2017, 7:19am UTC](https://forum.ansible.com/t/using-files-folder-for-storing-files/24295/6 "2017-04-25T07:19:45Z")

</div>

thanks for the reply
