ansible/roles/network/templates/systemd-network.j2

21 lines
367 B
Plaintext
Raw Normal View History

2019-03-27 07:05:37 +00:00
# {{ 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 %}