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.
This commit is contained in:
2021-10-10 11:54:12 -05:00
parent 11357a9df3
commit 2708dfe3f2
6 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{% 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 %}