ansible-role-version

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

Go Report Card

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 set 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.

To do so your requirements file needs to meet some requirements:

  • All roles do have their src set to a Git URL
  • Version is set to tags (if not it will be afterwards!)
  • The roles do have proper versioning with tags
  • The repos are public available (authentication while fetching the git repo is not yet supported)

Then just execute:

$ ansible-role-version update

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL