1
0
Fork 0
mirror of https://github.com/Luzifer/ansible-role-version.git synced 2024-10-18 04:44:21 +00:00
Tool to update a requirements.yml file for Ansible Galaxy with specific versions of roles
Find a file
Knut Ahlers 2db953925e
Migrate to cobra to support more future commands
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-01-11 00:02:48 +01:00
cmd Migrate to cobra to support more future commands 2018-01-11 00:02:48 +01:00
vendor Vendor dependencies 2018-01-10 23:26:40 +01:00
.gitignore Initial version 2018-01-10 16:32:48 +01:00
.repo-runner.yaml Add automated Github publishing 2018-01-10 23:35:01 +01:00
Gopkg.lock Vendor dependencies 2018-01-10 23:26:40 +01:00
Gopkg.toml Vendor dependencies 2018-01-10 23:26:40 +01:00
History.md prepare release v0.1.0 2018-01-10 23:36:32 +01:00
LICENSE Add meta-files 2018-01-10 23:32:22 +01:00
main.go Migrate to cobra to support more future commands 2018-01-11 00:02:48 +01:00
Makefile Add automated Github publishing 2018-01-10 23:35:01 +01:00
README.md Add meta-files 2018-01-10 23:32:22 +01:00

Luzifer / ansible-role-version

Very simple tool to update a requirements.yml file for Ansible Galaxy with specific versions of roles.

Usage

Lets say you do have a repository containing this requirements.yml:

---

- name: docker
  src: https://github.com/luzifer-ansible/docker
  version: v0.1.0
- name: docker-compose
  src: https://github.com/luzifer-ansible/docker-compose
  version: v1.0.0

...

Now your CI system should update the version of docker-compose to v1.0.1 and you don't want to fiddle with bash magic:

$ ansible-role-version docker-compose v1.0.1

And you're done!

Sure, this example is a bit constructed: In reality this tool was written to update a bunch of different repositories each having a way bigger list of roles to include and the tool is used in a script to update all of them and create pull-requests out of the change.