I have a git project with few roles in the playbook, I want to use one of the roles in ansible galaxy.
The clone of the repo is working but it fails in the stage of archive it:
executing: git clone https://[email protected]/my-project/search-mysql search-mysql executing: git archive --prefix=search-mysql/ --output=/tmp/tmp3f6ySq.tar search
command git archive --prefix=search-mysql/ --output=/tmp/tmp3f6ySq.tar search failed
Using requirements.yml
file, and
ansible-galaxy install --role-file=requirements.yml --roles-path=roles --force
any idea why the archive is failing? can I only download the role and not the entire project(search-mysql)?
Thanks,
requirements.yml
? I've never seen a feature how to use a single subdirectory of a repo as the source for galaxy roles. Curious how you tried this. – udondan