Am Dienstag, 12. April 2016 06:07:52 UTC+2 schrieb Brian Coca:
>
> hostvars is not a dict anymore, so .keys() might not work
>

That's it! Thank you so much. If I replace hostvars.keys() with 
groups['servers'] it works!

Using unsupported ways to access internal data structures (.keys()) should 
be avoided, I know, but still I wonder why ansible does not indicate a 
failed template expansion and simply pushes the jinja2 code, which in 
almost any case should be the wrong thing to do and lead to service failure.

-- 
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/414c8b4e-a511-45e1-b2ab-651171ff1c0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to