Re: [ansible-project] Getting the version of an Ansible Galaxy role

2020-06-03 Thread Brian Coca
if they are your roles a _rolname_version in vars/main.yml would be a good workaround. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an em

Re: [ansible-project] Getting the version of an Ansible Galaxy role

2020-05-22 Thread 'Pablo Baeyens' via Ansible Project
Okay, thank you for your help! 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. Pablo On Thursday, May 21, 2020 at

Re: [ansible-project] Getting the version of an Ansible Galaxy role

2020-05-20 Thread Brian Coca
nothing internal, you'll have to shell out to use `ansilbe-galaxy info --offline` -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email

[ansible-project] Getting the version of an Ansible Galaxy role

2020-05-19 Thread 'Pablo Baeyens' via Ansible Project
Hi, 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