Use NIC's PCI address to match

This commit is contained in:
Sonny Bakker 2026-09-20 08:07:56 +02:00
parent 060ee37c88
commit fb26678435
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
---
network_interface: link1
network_mac: 00:1b:21:3b:50:e2
network_pci_path: pci-0000:04:00.0
lan_ip: 192.168.2.1
lan_gateway: 192.168.2.254

View file

@ -1,7 +1,7 @@
# {{ ansible_managed }}
[Match]
MACAddress={{ network_mac }}
Path={{ network_pci_path }}
[Link]
NamePolicy=