title: Dependent role is not running
body: <h1>Background</h1>
  
  <p>I am experimenting with Ansible (1.9.4) roles and I am trying to get the hang of role dependencies.</p>
  
  <p>I have created the following roles:</p>
  
  <ol>
  <li>A role that installs the Oracle JDK (ansible-java8)</li>
  <li>A role that installs Tomcat (ansible-tomcat7)</li>
  </ol>
  
  <p>The second role defines the first as a dependency in <code>/ansible-tomcat7/meta/main.yml</code>:</p>
  
  <pre><code>dependencies:
    - { role: java8 }
  </code></pre>
  
  <p>I also included a requirements.yml file with the following:</p>
  
  <pre><code>- name: java8
    src: 'https://github.com/gregwhitaker/ansible-java8'
  </code></pre>
  
  <p>I have added the following configuration to my <code>/etc/ansible/ansible.cfg</code> to configure my roles_path to a place in my home directory:</p>
  
  <pre><code>roles_path  = ~/ansible/roles
  </code></pre>
  
  <p>I then installed the <code>ansible-java8</code> role as <code>java8</code> using the following command:</p>
  
  <pre><code>ansible-galaxy install -r requirements.yml
  </code></pre>
  
  <p>Once the command was ran I can see the java8 role in the ~/ansible/roles directory.</p>
  
  <p>However, when I run a playbook that calls the tomcat7 role only that role is executed.  The java8 role is not executed before the tomcat7 role.</p>
  
  <pre><code>PLAY [all] ********************************************************************
  
  GATHERING FACTS ***************************************************************
  ok: [default]
  
  TASK: [Install Tomcat7 (Ubuntu)] **********************************************
  changed: [default] =&gt; (item=tomcat7,libtcnative-1,libapr1)
  
  TASK: [Install Tomcat7 (Debian)] **********************************************
  skipping: [default]
  
  TASK: [Install Tomcat7 (Amazon Linux)] ****************************************
  skipping: [default]
  
  PLAY RECAP ********************************************************************
  default
  </code></pre>
  
  <h1>Questions</h1>
  
  <ol>
  <li>Is this the correct way to define dependent roles or have I totally missed something?</li>
  <li>Am I correct in thinking that since I marked the tomcat7 role as depending on java8 that the java8 role should have been located from the roles_path and ran first?</li>
  <li>What mistake am I making that is causing the java8 role to not run before the tomcat7 role?</li>
  </ol>