xoxys.network/templates/etc/sysconfig/network-scrips/ifcfg.j2

7 lines
188 B
Django/Jinja

#jinja2: trim_blocks: True, lstrip_blocks: True
# {{ ansible_managed }}
DEVICE="{{ item.key }}"
{%+ for key, value in item.value.items() -%}
{{ key | upper }}="{{ value }}"
{% endfor %}