# Role Dependency hell?

**URL:** <https://forum.ansible.com/t/role-dependency-hell/36283>\
**Category:** Ansible Project\
**Created:** [February 3, 2022, 3:19am UTC](https://forum.ansible.com/t/role-dependency-hell/36283 "2022-02-03T03:19:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry\_Gadallah](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@Larry\_Gadallah](https://forum.ansible.com/u/Larry_Gadallah)\
**Post date:** [February 3, 2022, 3:19am UTC](https://forum.ansible.com/t/role-dependency-hell/36283/1 "2022-02-03T03:19:22Z")

</div>

Short version: I have a subordinate role that works fine in it’s own CI and test, for all tested distros. I have a superior role that is dependent on the subordinate role, and is tested for all of the same distros. I get a weird failure for some of the distros in the CI and test during the prepare stage, when the subordinate role is being invoked, and it fails, even though it passes for the same distro in its own CI and test. Details here:

[https://www.reddit.com/r/ansible/comments/sj7fr7/molecule\_dependency\_question/?utm\_source=share&utm\_medium=web2x&context=3](https://www.reddit.com/r/ansible/comments/sj7fr7/molecule_dependency_question/?utm_source=share&utm_medium=web2x&context=3)

Does anyone know how to debug or figure out what’s going on here?

Thanks,

---

<div class="post-metadata">

**Author:** ![Larry\_Gadallah](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@Larry\_Gadallah](https://forum.ansible.com/u/Larry_Gadallah)\
**Post date:** [February 3, 2022, 6:25am UTC](https://forum.ansible.com/t/role-dependency-hell/36283/2 "2022-02-03T06:25:55Z")

</div>

Answered my own question: My `converge` playbook had some pre\_tasks set up to to an `apt-get update` for Debian-based distros. Once I moved that out of the `converge` to the `prepare` playbook, things started working as expected.

Thanks!
