# Can Role Dependencies be overridden?

**URL:** <https://forum.ansible.com/t/can-role-dependencies-be-overridden/17274>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [January 14, 2015, 8:36pm UTC](https://forum.ansible.com/t/can-role-dependencies-be-overridden/17274 "2015-01-14T20:36:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![junkmailtrapenator](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@junkmailtrapenator](https://forum.ansible.com/u/junkmailtrapenator)\
**Post date:** [January 14, 2015, 8:36pm UTC](https://forum.ansible.com/t/can-role-dependencies-be-overridden/17274/1 "2015-01-14T20:36:59Z")

</div>

Let’s say I install a role from Ansible Galaxy:

$ ansible-galaxy install SomeUser.role1

Now this role is great and does exactly what I want except it has a role dependency on 'SomeUser.role2 which I don’t need or want because I’m doing the equivalent of what it does in a different way. So what I’d like someway to tell ‘SomeUser.role1’ that ‘MyRole1’ satisfies the requirements for ‘SomeUser.role2’ and should be run in it’s place.

Obviously I could edit the meta file for ‘SomeUser.role1’ but is there a better way?
