# ERROR! A recursion loop was detected with the roles

**URL:** <https://forum.ansible.com/t/error-a-recursion-loop-was-detected-with-the-roles/21678>\
**Category:** Ansible Project\
**Created:** [June 6, 2016, 5:36pm UTC](https://forum.ansible.com/t/error-a-recursion-loop-was-detected-with-the-roles/21678 "2016-06-06T17:36:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [June 6, 2016, 5:36pm UTC](https://forum.ansible.com/t/error-a-recursion-loop-was-detected-with-the-roles/21678/1 "2016-06-06T17:36:12Z")

</div>

I have couple of roles to deploy the app that work perfectly with `ansible 1.9.x` but with `ansible 2.0+` I am getting this error. Can somebody have clue about this error.

```auto
ERROR! A recursion loop was detected with the roles specified. Make sure child roles do not have dependencies on parent roles

The error appears to have been in '/Users/tendo/git/configuration/playbooks/roles/server_util/meta/main.yml': line 14, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

dependencies:
  - common
    ^ here

```

---

<div class="post-metadata">

**Author:** ![Adam\_Morris](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Adam\_Morris](https://forum.ansible.com/u/Adam_Morris)\
**Post date:** [June 6, 2016, 8:23pm UTC](https://forum.ansible.com/t/error-a-recursion-loop-was-detected-with-the-roles/21678/2 "2016-06-06T20:23:21Z")

</div>

It sound like server-utils depends on Common which has a dependency to something else (possibly even server\_utils) and eventually back round to server\_utils... So, what dependencies does Common have, and what dependencies do they have? It is possible that 1.9 didn't check dependencies more than one level deep... I don't know.
