Ansible playbook using private git role dependency

Question:

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.

play.yml

requirements.yml

role-base/meta/main.yml


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?

Answer:

Looks like it’s a bug in the 1.9. I created a PR (https://github.com/ansible/ansible/pull/13802) but I doubt it’ll get merged as Ansible 2.0 has just been released.

Leave a Reply