# Role meta dependencies and overrides

**URL:** <https://forum.ansible.com/t/role-meta-dependencies-and-overrides/23658>\
**Category:** Ansible Project\
**Created:** [February 7, 2017, 9:03am UTC](https://forum.ansible.com/t/role-meta-dependencies-and-overrides/23658 "2017-02-07T09:03:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Olliver2](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Mark\_Olliver2](https://forum.ansible.com/u/Mark_Olliver2)\
**Post date:** [February 7, 2017, 9:03am UTC](https://forum.ansible.com/t/role-meta-dependencies-and-overrides/23658/1 "2017-02-07T09:03:01Z")

</div>

Hi All,

I am using ansible 2.2.1.0 and have a few issues with meta dependencies.

I have a base role that is used for many of my environments. This role in turn has a meta file which defines a list of dependant roles. For example one role updates the centos yum file to use a specific mirror via a role var.

Now so far so good, however when I include the base role as a requirement for another playbook it correctly pulls in the meta dependencies and as expected runs these first. The problem being when running the role I have group\_vars/all set with a variable override for the location of the mirror.  
The issue here is that the on first pass as it is a dependency it is ignoring the override var.  
Is there a way to ensure these are enforced on dependencies?

Thanks

Mark

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [February 7, 2017, 10:18am UTC](https://forum.ansible.com/t/role-meta-dependencies-and-overrides/23658/2 "2017-02-07T10:18:26Z")

</div>

You can specify variables on dependencies.

[https://docs.ansible.com/ansible/playbooks\_roles.html#role-dependencies](https://docs.ansible.com/ansible/playbooks_roles.html#role-dependencies)

Johannes
