# Passing variables from s3 buckets to reusable roles

**URL:** <https://forum.ansible.com/t/passing-variables-from-s3-buckets-to-reusable-roles/17830>\
**Category:** Ansible Project\
**Created:** [March 24, 2015, 9:09pm UTC](https://forum.ansible.com/t/passing-variables-from-s3-buckets-to-reusable-roles/17830 "2015-03-24T21:09:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaime\_Bermudez](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@Jaime\_Bermudez](https://forum.ansible.com/u/Jaime_Bermudez)\
**Post date:** [March 24, 2015, 9:09pm UTC](https://forum.ansible.com/t/passing-variables-from-s3-buckets-to-reusable-roles/17830/1 "2015-03-24T21:09:10Z")

</div>

Doesn’t seem like this is currently possible with Ansible playbooks, but it would be great if there were an include directive that would pull variables from a YAML file in s3. We have some reusable roles that some of our app stacks depend on, like a postgres RDS role. Currently, we’re defining a vault file that gets included via ‘include\_vars’ in a top-level playbook and the dependent role is passed variables from there. One advantage of being able to pull from s3 is that we wouldn’t have to modify source code - source code that is vaulted, so the resultant PRs can’t be easily verified. Am I missing some mechanism to define variables from s3 (which I’ve done inside of playbooks using the s3 module followed by the include\_vars module) before including a role? Is this something that might be addressed in v2?

Thanks!

Jaime
