1
0
Fork 0
mirror of https://github.com/Luzifer/ansible-role-version.git synced 2024-10-18 04:44:21 +00:00

Add documentation for update command

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-19 18:20:32 +01:00
parent 209b813c5b
commit 6814ff2985
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -33,3 +33,16 @@ $ ansible-role-version set docker-compose v1.0.1
And you're done! 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. 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:
```console
$ ansible-role-version update
```