# Is it possible to use files from the "playbook" layer for the "copy" module?

**URL:** <https://forum.ansible.com/t/is-it-possible-to-use-files-from-the-playbook-layer-for-the-copy-module/23104>\
**Category:** Ansible Project\
**Created:** [November 25, 2016, 6:09pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-files-from-the-playbook-layer-for-the-copy-module/23104 "2016-11-25T18:09:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![General\_Luken](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@General\_Luken](https://forum.ansible.com/u/General_Luken)\
**Post date:** [November 25, 2016, 6:09pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-files-from-the-playbook-layer-for-the-copy-module/23104/1 "2016-11-25T18:09:49Z")

</div>

Hi!  
What I mean by the title: In roles we can have a “files” directory, with files that could be copied to server. I would like to have those files outside of the role, they should be provided by my playbook and not the role. What is a recommended way of achieving it?

Best wishes.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [November 29, 2016, 5:50pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-files-from-the-playbook-layer-for-the-copy-module/23104/2 "2016-11-29T17:50:44Z")

</div>

Just put them in files/ directory at play level, that is in the search path for copy, it will try the role’s files/ first so that must not contain the file in that case.
