On 20 October 2014 23:12, Michael DeHaan <[email protected]> wrote:

> "I *think* that debug: var=hostvars should print all the variables in
> scope (for each host)"
>
> It doesn't do this, but rather looks for variable names inside hostvars.
>
> You can think of the "hostvars" syntax as a way to reference variables for
> other hosts.
>
> I guess whether it should work might be a technicality, but that's what it
> was intended for.
>


​Yes, 'hostvars' is implemented  as a caching dictionary, which means you
need to explicitly request vars for a particular key/host.​

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEhzMJDSckg8YthtG_zwxfi5eopJ0MNd%3Dy%3D4QJz-Rjbwxhy_7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to