21 lines
367 B
Plaintext
21 lines
367 B
Plaintext
|
# {{ ansible_managed }}
|
||
|
|
||
|
[Match]
|
||
|
Name={{ item.name }}
|
||
|
|
||
|
[Network]
|
||
|
{% if item.address is string %}
|
||
|
Address={{ item.address }}
|
||
|
{% else %}
|
||
|
{% for address in item.address %}
|
||
|
Address={{ address }}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
{% if item.gateway is string %}
|
||
|
Gateway={{ item.gateway }}
|
||
|
{% else %}
|
||
|
{% for gateway in item.gateway %}
|
||
|
Gateway={{ gateway }}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|