Ansible playbook using private git role dependency


I have an issue running an Ansible playbook with a set of private roles (that is, Ansible roles in a private git repository).

For example, I have a playbook that uses the role base which depends on dep, both of which are hosted in private git repositories. Running ansible-galaxy fetches and installs all roles and dependencies as it should, but later ansible-playbook fails at using the correct role name.




I tried using the alternative role-name system as the dependency:

Which is fine for ansible-galaxy but still ansible-playbook fails…

Is there a way to use role dependencies from private repos correctly?


Looks like it’s a bug in the 1.9. I created a PR ( but I doubt it’ll get merged as Ansible 2.0 has just been released.

Leave a Reply