"Poor man's Ansible role update"
by
Pedro Salgado
is licensed under a
Creative Commons Attribution-ShareAlike 4.0 International License.
-
create a requirements.yml file
- src: git+ssh://git@host:port/repo/myrole.git version: v1.0.0-1 # git tag that you want to download name: myrole scm: git
-
to be able to install and update the roles use the following bash script
#!/bin/bash # update-roles.sh grep 'name:' requirements.yml | awk -F: '{print $2}' | xargs -I {} ansible-galaxy remove {} ansible-galaxy install -r requirements.yml