I have a requirements.yml file with the following contents:
- src: git@github.com:SomeOrg/SomeRole.git
scm: git
version: master
name: some-role
If I run ansible-galaxy
, the role gets includes in the roles directory as expected. The role ends up being an export of the desired git revision rather than a git repository itself. Is there a way to tell ansible-galaxy
to pull in the role as git repository?
Composer, the PHP package manager, does this by default. Having the dependencies you pull in being git repositories where applicable makes it a lot easier to make changes to those.