title: Ansible playbook using private git role dependency
body: <p>I have an issue running an Ansible playbook with a set of private roles (that is, Ansible roles in a private git repository).</p>
  
  <p>For example, I have a playbook that uses the role <code>base</code> which depends on <code>dep</code>, both of which are hosted in private git repositories. Running <code>ansible-galaxy</code> fetches and installs all roles and dependencies as it should, but later <code>ansible-playbook</code> fails at using the correct role name.</p>
  
  <p><code>play.yml</code></p>
  
  <pre><code>- hosts: test
    roles:
      - role: base
  </code></pre>
  
  <p><code>requirements.yml</code></p>
  
  <pre><code>- name: base
    src: ssh://git@10.0.0.1/ansible/role-base.git
    scm: git
  </code></pre>
  
  <p><code>role-base/meta/main.yml</code></p>
  
  <pre><code>galaxy-info:
    author: Me
    description: Test Ansible role dependencies
    min_ansible_version: 1.9
    platforms: Ubuntu
  dependencies:
    - name: dep
      src: ssh://git@10.0.0.1/ansible/role-dep.git
      scm: git
  </code></pre>
  
  <hr>
  
  <pre><code>$ ansible-galaxy -r requirements.yml
  - executing: git clone ssh://git@10.0.0.1/ansible/role-base.git base
  - executing: git archive --prefix=base/ --output=/tmp/tmp4YKG7a.tar
  - extracting base to ansible-roles/base
  - base was installed successfully
  - adding dependency: dep
  - executing: git clone ssh://git@10.0.0.1/ansible/role-dep.git dep
  - executing: git archive --prefix=dep/ --output=/tmp/tmpT2YiW4.tar
  - extracting base to ansible-roles/dep
  - dep was installed successfully
  
  $ ansible-playbook play.yml
  ERROR: expected a role name in dictionary: {'scm': 'git', 'src': 'ssh://git@10.0.0.1/ansible/role-dep.git', 'name': 'dep'}
  </code></pre>
  
  <p>I tried using the alternative role-name system as the dependency:</p>
  
  <pre><code>dependencies:
    - role: "git+ssh://git@10.0.0.1/ansible/role-dep.git,,dep"
  </code></pre>
  
  <p>Which is fine for <code>ansible-galaxy</code> but still <code>ansible-playbook</code> fails...</p>
  
  <pre><code>$ ansible-galaxy -r requirements.yml
  - executing: git clone ssh://git@10.0.0.1/ansible/role-base.git base
  - executing: git archive --prefix=base/ --output=/tmp/tmpTcvpDu.tar
  - extracting base to ansible-roles/base
  - base was installed successfully
  - adding dependency: dep
  - executing: git clone ssh://git@10.0.0.1/ansible/role-dep.git dep
  - executing: git archive --prefix=dep/ --output=/tmp/tmpd726OV.tar
  - extracting base to ansible-roles/dep
  - dep was installed successfully
  
  $ ansible-playbook play.yml
  ERROR: cannot find role in &lt;pwd&gt;/roles/git+ssh://git@10.0.0.1/ansible/role-dep.git,,dep or &lt;pwd&gt;/git+ssh://git@10.0.0.1/ansible/role-dep.git,,dep or &lt;pwd&gt;/ansible-roles/git+ssh://git@10.0.0.1/ansible/role-dep.git,,dep
  </code></pre>
  
  <p>Is there a way to use role dependencies from private repos correctly?</p>