I want to know the version of a role (from Galaxy) from inside that role (versions correspond to git tags in the source repo).
Is there any special variable I can get with the version of a role being executed?
Any other alternative method of getting this information would also work.
I don’t think it is the best approach since the output from that command seems meant for humans to read and so there are no guarantees that it will remain as is in future versions, but there does not seem to be an alternative.