# How to skip Role Dependencies?

**URL:** <https://forum.ansible.com/t/how-to-skip-role-dependencies/14097>\
**Category:** Ansible Project\
**Created:** [December 8, 2013, 9:34am UTC](https://forum.ansible.com/t/how-to-skip-role-dependencies/14097 "2013-12-08T09:34:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![howachen](https://avatars.discourse-cdn.com/v4/letter/h/54ee81/32.png) [@howachen](https://forum.ansible.com/u/howachen)\
**Post date:** [December 8, 2013, 9:34am UTC](https://forum.ansible.com/t/how-to-skip-role-dependencies/14097/1 "2013-12-08T09:34:19Z")

</div>

Sometimes, we would like deploy a machine without the need for checking the “Role Dependencies”, because it is very slow for our playbook (up to 5 mins), is it possible?

Thanks.

---

<div class="post-metadata">

**Author:** ![Brian\_Green](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Brian\_Green](https://forum.ansible.com/u/Brian_Green)\
**Post date:** [December 8, 2013, 3:07pm UTC](https://forum.ansible.com/t/how-to-skip-role-dependencies/14097/2 "2013-12-08T15:07:56Z")

</div>

Have you tried something like:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 8, 2013, 3:54pm UTC](https://forum.ansible.com/t/how-to-skip-role-dependencies/14097/3 "2013-12-08T15:54:04Z")

</div>

When you say “checking role dependencies” is slow, can you elaborate?

There’s a feature of Ansible called role dependencies which has nothing at all to do with the network, nor does it run any tasks, so I’m pretty sure we’re not talking about the same thing.

Or if we are, you’ve somehow got a super-strange recursive loop going on that we didn’t anticipate and it’s not going to get done ever – but you said it does get done.

In either case, more info would be great!

---

<div class="post-metadata">

**Author:** ![Chris\_Arnesen](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@Chris\_Arnesen](https://forum.ansible.com/u/Chris_Arnesen)\
**Post date:** [October 9, 2014, 5:11pm UTC](https://forum.ansible.com/t/how-to-skip-role-dependencies/14097/4 "2014-10-09T17:11:25Z")

</div>

He just means that sometimes the user wants to run a role without having to first run through all its dependencies, something like:

ansible-playbook foo.yml --skip-role-dependencies

which would run the roles as if they had no dependencies.

---

<div class="post-metadata">

**Author:** ![Michael\_Peters](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Post date:** [October 9, 2014, 7:57pm UTC](https://forum.ansible.com/t/how-to-skip-role-dependencies/14097/5 "2014-10-09T19:57:30Z")

</div>

I do this by tagging each dependent role as 'dependent-role' and then  
use the --skip-tags dependent-role when I need to execute just the top  
level role (usually only for testing).
