*systemd-networkd* is (currently) my preferred way to manage network interfaces on machines running Fedora. The *systemd-networkd* role provides a generic way to configure network links, devices, and interfaces, using Ansible variables to generate network unit configuration files.
13 lines
327 B
Django/Jinja
13 lines
327 B
Django/Jinja
{% for section in item if section != "name" %}
|
|
[{{ section }}]
|
|
{% for key in item[section] %}
|
|
{% if item[section][key] is not iterable or item[section][key] is string %}
|
|
{{ key }}={{ item[section][key] }}
|
|
{% else %}
|
|
{% for value in item[section][key] %}
|
|
{{ key }}={{ value }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|