Add networkd configuration to server role

Update inventory with necessary networking settings
This commit is contained in:
2021-11-06 00:33:41 -04:00
parent ce799cceaa
commit 487e41c058
5 changed files with 185 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
# ANSIBLE MANAGED FILE - DO NOT MANUALLY EDIT
#
[NetDev]
Name={{ item.key }}
type={{ item.value.type }}
{% if item.value.type.lower() == 'bond' %}
[Bond]
Mode={{ item.value.bond_mode | default('balance-rr') }}
PrimaryReselectPolicy=always
MIIMonitorSec=1s
{% endif %}
{% if item.value.type.lower() == 'vlan' %}
[VLAN]
Id={{ item.key.partition('.')[2] }}
{% endif %}
# EOF