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:
12
roles/systemd-networkd/templates/network.j2
Normal file
12
roles/systemd-networkd/templates/network.j2
Normal 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 %}
|
||||
Reference in New Issue
Block a user