In reference to this issue: https://github.com/ansible/ansible/issues/12353
I’ve come across the need to be able to “clone” a private role using ansible-galaxy and the requirements.yml file and found the above issue on this topic. It doesn’t appear anyone was planning to implement this so I forked the repo and made the changes. I’ve got everything working but wasn’t sure if I should submit a pull request or if there were other things to consider first.
you can find my code here: https://github.com/spencerwjensen/ansible/tree/galaxy-clone
thanks
spencer
Hi Spencer,
I have also been looking at the same thing, https://github.com/leigh-j/ansible/tree/galaxy-clone
From reading a few other proposals I think the ansible devs don’t want to make these sort of changes to the requirements definition, I am working on something similar that is done via command line options rather than role definitions. I think it’s the sort of thing that belongs as a command line option in the same vain as role path and no-deps Though I can see how this would be useful for cloning just some roles.
I got sidetracked with christmas but will put up a proposal today if I can