# Inserting a a role from galaxy as a dependency

**URL:** <https://forum.ansible.com/t/inserting-a-a-role-from-galaxy-as-a-dependency/15052>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [April 19, 2014, 7:58pm UTC](https://forum.ansible.com/t/inserting-a-a-role-from-galaxy-as-a-dependency/15052 "2014-04-19T19:58:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Charbonneau](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@Daniel\_Charbonneau](https://forum.ansible.com/u/Daniel_Charbonneau)\
**Post date:** [April 19, 2014, 7:58pm UTC](https://forum.ansible.com/t/inserting-a-a-role-from-galaxy-as-a-dependency/15052/1 "2014-04-19T19:58:22Z")

</div>

Here’s an example of my project’s setup:  
[https://gist.github.com/novodinia/afa58be3c34dd600291f](https://gist.github.com/novodinia/afa58be3c34dd600291f)

Launching the bar application causes an error because it can’t find Java. Would someone be willing to help me out with using a role pulled from galaxy and inserting the role as a dependency?

Ansible documentation on inserting dependencies:  
[http://docs.ansible.com/playbooks\_roles.html#id7](http://docs.ansible.com/playbooks_roles.html#id7)

The role I’m trying to use:  
[https://galaxy.ansible.com/list#/roles/720](https://galaxy.ansible.com/list#/roles/720)

---

<div class="post-metadata">

**Author:** ![Heath\_Matlock](https://avatars.discourse-cdn.com/v4/letter/h/22d042/32.png) [@Heath\_Matlock](https://forum.ansible.com/u/Heath_Matlock)\
**Post date:** [April 19, 2014, 8:25pm UTC](https://forum.ansible.com/t/inserting-a-a-role-from-galaxy-as-a-dependency/15052/2 "2014-04-19T20:25:25Z")

</div>

I figured it out, I needed to specify the roles dictionary, and list foo as a role. Thanks Ansible community for your hard work!
