I'm going to guess that you probably don't have facts cached (or the cache
has expired) for the hosts where the variable is undefined.
On Wed, Aug 21, 2019, 5:15 PM Dennis H wrote:
> So I'm trying to combine magic variables and jinja. Unfortnately I'm
> running into issues. So This is the jinja
So I'm trying to combine magic variables and jinja. Unfortnately I'm running
into issues. So This is the jinja script
{% for host in groups['all'] %}
{{
hostvars[host]['ansible_facts']['devices']['sda']['partitions']['sda1']['size']
}}
{% endfor %}
I run into this error
"AnsibleUndefinedVa