Re: [ansible-project] Issues with an jinja and magic variables script any help would be awesome

2019-08-22 Thread S C Rigler
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

[ansible-project] Issues with an jinja and magic variables script any help would be awesome

2019-08-21 Thread Dennis H
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