-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requiring roles from an external git repo doesn't work as documented #10832
Comments
the role will not be autodownloaded, this still needs to happen by invoking ansible-galaxy, we should really make that clearer in the docs (though it is a feature we do want). |
Ah okay. Yeah, that's confusing, because the fact that it allows you to put a URL suggests that it might download it for you even though it doesn't actually say that. Why else would you put a URL instead of just the name of the role if it wasn't doing something over the network (rhetorical question)? Would love to be able to autodownload roles from galaxy or github. It would event be pretty good if you could just pop a |
+1 to clearing this up. It is super confusing. I wasted a day on it. As far as I can tell ansible-galaxy cannot download roles from a git repo. Only through the ansible-galaxy api. Is that right? |
ansible-galaxy is able to download roles from any git/mercurial repo |
Another way to solve things is if ansible allowed you to install roles with pip. Then one could have a requirements file with ansible and all the necessary roles. |
According to http://docs.ansible.com/playbooks_roles.html#role-dependencies, I can do:
- { role: 'git+http://git.example.com/repos/role-foo,v1.1,foo' }
but this doesn't work; when running a playbook that has a role that has this, Ansible tries to look on the local file system which of course fails:
Cc: @bcoca, @sudarkoff
The text was updated successfully, but these errors were encountered: