Closed petr-balogh closed 7 years ago
Can ansible-galaxy be used to install a collection of playbooks + roles like this project? I was under the impression it was only for roles, not larger compositions of roles like this project.
ansible-galaxy allows also install roles from github, you just need specify requirement yaml file with content for example:
---
- src: https://github.com/fusor/ansible-ovirt.git
version: master
name: ansible-ovirt-deploy
then you can run: ansible-galaxy install -r path/to/requirements.yml But if you are missing these metadata, ansible-galaxy fails with error that there are no metadata.
so this could allows at least install your roles this way as we would like to use it for now.
Anyone else then can easily define in requirements link to your github, and use your roles in their playbooks which will be automatically downloaded, in case they use some automation as we use.
We also using same approach for using roles from here: https://github.com/rhevm-qe-automation/ovirt-ansible
Wow, that's really cool, I didn't know that. Thanks for the PR and explanation!
Metadata for install these ansible roles from ansible galaxy.
Change-Id: I27e2fadc71b2d4288a724c81eaa35867c6f9f7a7