ansible-galaxy and git clone from


I am using ansible-galaxy (v2.0.0.2) to install ansible roles that which has the source code on Bitbucket through the requirements.yml file. But I could not checkout the code from with the private key. Here is the error message, and also my requirements.yml content.

Does any one what’s the correct requirements.yml file format for ansible-galaxy



Maybe the scp syntax does not work. The url one might:

Try, as in this ansible issue:

Direct copy from github clone repo path

Actual URL that works

You have to replace the : with a /.
And it needs to be a URL (i.e. contain ://) otherwise ansible-galaxy assumes it’s a filesystem path.

Leave a Reply