This question is targeted at Matt Martz and Brian Coca (but anyone should 
feel free to jump in).  I recently asked a question about how to access a 
variable in a task.  Matt, you recommended 
hostvars[inventory_hostname][item], and Brian, you recommended 
lookup('vars', item).  I remember a discussion that included you both a few 
years ago where Matt, you promoted hostvars, and Brian, you promoted vars, 
but I can't remember where it was (freenode?  github?).  So each of you has 
a preference, and I'm curious why.  Both are documented approaches, but I 
don't see any documentation around the subtleties associated with each   
Care to share?

Thanks
Rob

-- 
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/090bd286-d2db-46e8-b2ef-4e5848405c6fn%40googlegroups.com.

Reply via email to