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

-- 
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 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/95931096-eedb-44af-b80b-9231db216bf0n%40googlegroups.com.

Reply via email to