The question then is, how do I loop over the hostvars for hosts in a 
template?
The original question popped up today, because I was trying something which
used to work:

  {% for host, v in hostvars.iteritems() %}
    {{ host }} == {{ v['ansible_distribution_version'] }}  .. etc.
  {% endfor %}

I *know* this worked for hosts because I copied it from an old presentation 
I did.
Nowadays (1.8.2) it no longer works: because of the extra keys in hostvars.

Regards,

   -JP

>
>

-- 
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/7d96f7b0-617a-4f70-8e44-b044f87bb9e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to