# Passing variables in roles

**URL:** <https://forum.ansible.com/t/passing-variables-in-roles/27185>\
**Category:** Ansible Developer\
**Created:** [April 4, 2018, 10:35am UTC](https://forum.ansible.com/t/passing-variables-in-roles/27185 "2018-04-04T10:35:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranay\_Nanda](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Pranay\_Nanda](https://forum.ansible.com/u/Pranay_Nanda)\
**Post date:** [April 4, 2018, 10:35am UTC](https://forum.ansible.com/t/passing-variables-in-roles/27185/1 "2018-04-04T10:35:06Z")

</div>

Is it possible to pass values registered in role to be passed as a variable to another role? I have a list of files that I want to register using the find module in one role and then pass the registered value to another role.

---

<div class="post-metadata">

**Author:** ![Andrew\_Gaffney](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Andrew\_Gaffney](https://forum.ansible.com/u/Andrew_Gaffney)\
**Post date:** [April 4, 2018, 1:15pm UTC](https://forum.ansible.com/t/passing-variables-in-roles/27185/2 "2018-04-04T13:15:18Z")

</div>

This question would be better asked on the ansible-project mailing list or in the #ansible IRC channel. This mailing list is for discussion about development of Ansible itself, and you won’t get a lot of meaningful answers for general usage questions.
