# File lookup within a role

**URL:** <https://forum.ansible.com/t/file-lookup-within-a-role/18916>\
**Category:** Ansible Project\
**Created:** [August 1, 2015, 6:30pm UTC](https://forum.ansible.com/t/file-lookup-within-a-role/18916 "2015-08-01T18:30:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Kane](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Ryan\_Kane](https://forum.ansible.com/u/Ryan_Kane)\
**Post date:** [August 1, 2015, 6:30pm UTC](https://forum.ansible.com/t/file-lookup-within-a-role/18916/1 "2015-08-01T18:30:22Z")

</div>

Hi - I’m new to Ansible and trying to create a role that contains a file, the contents of which are passed to a second role.

Example Structure:

RoleA

files

- foo.txt

meta

- main.yml

The contents of main.yml are:
