Hello,
A few years back I wrote a playbook that defined a variable like this:
variable_names: “{{ vars.keys() }}”
The playbook is still working fine, but when I recently revisited it and tried to refresh myself on how it works, I found that I couldn’t find any documentation on the vars dictionary. I’m concerned that the lack of documentation means that this isn’t something that is officially supported and it may stop working in a future version.
I’m hoping that someone can either point me to some documentation, or let me know that using vars is a legit thing to do.
For what it’s worth, I’m using this to dynamically access variables defined within roles.
Thanks,
Andrew