Files
configpolicy/roles/systemd-networkd/templates/network.j2
Dustin C. Hatch 2708dfe3f2 r/systemd-networkd: Role to configure networkd
*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.
2021-10-10 16:09:15 -05:00

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 %}