xoxys.network/templates/etc/sysconfig/network-scrips/ifcfg.j2
Robert Kaussow 73a29b0619
Some checks failed
continuous-integration/drone/push Build is failing
fix: fix rhel9 compatibility
2022-09-18 13:02:53 +02:00

13 lines
362 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
DEVICE="{{ item.key }}"
{% for key, value in item.value.items() %}
{% if key | lower == "dns" and not value is string and value is iterable %}
{% for item in value -%}
DNS{{ loop.index }}={{ item }}
{% endfor %}
{% else %}
{{- key | upper }}={{ value }}
{% endif %}
{% endfor %}