Inserting a a role from galaxy as a dependency

Here’s an example of my project’s setup:
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

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

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