Hello all.
I use simple construction in template file:
"{% for host in groups.cassandra %}{{
hostvars[host]['ansible_eth0']['ipv4']['address'] }},{% endfor %}"
and in command line I see:
"msg": "AnsibleUndefinedVariable: 'dict object' has no attribute
'ansible_eth0'"
If I use next construction:
"{% for host in groups.cassandra %}{{ hostvars[host]['omit'] }},{% endfor
%}"
I see 'omit' value from facts.
If I try to view all facts in my template file I see:
"{u'ansible_user_id': u'root', 'omit':
'__omit_place..............',u'ansible_eth0':'192.192.192.192'"
How to fix it?
ansible version 2.1.1.0
Evgeny Shamrov
--
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/eaece1d7-a1e2-49e5-b863-45561f9abcfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.