Deconsolidate network setup for proxmox and debian roles
They are just different enough to be annoying.
This commit is contained in:
parent
c3d1a6c4b1
commit
211d4bdb9a
10 changed files with 104 additions and 19 deletions
3
templates/10-network.rules.j2
Normal file
3
templates/10-network.rules.j2
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% for iface in hostvars[inventory_hostname].interfaces | selectattr('mac_address') %}
|
||||
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="{{ iface.mac_address|lower }}", NAME="{{ iface.name }}"
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue