nested variable in jinja tempalte code example
Example: nested variable in jinja tempalte
{{ fqdn }}
{% for interface in hosts[fqdn] %}
{{ interface }}
{{ hosts[fqdn][interface]['ip'] }}
{% endfor %}
{{ fqdn }}
{% for interface in hosts[fqdn] %}
{{ interface }}
{{ hosts[fqdn][interface]['ip'] }}
{% endfor %}