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

13 lines
360 B
Plaintext
Raw Normal View History

2022-09-18 11:02:53 +00:00
#jinja2: lstrip_blocks: True
2019-08-27 20:24:09 +00:00
{{ ansible_managed | comment }}
2024-06-21 20:55:49 +00:00
DEVICE={{ item.key }}
2022-09-18 11:02:53 +00:00
{% 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 %}
2017-05-18 21:10:07 +00:00
{% endfor %}