Use NIC's PCI address to match
This commit is contained in:
parent
060ee37c88
commit
fb26678435
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Match]
|
||||
MACAddress={{ network_mac }}
|
||||
Path={{ network_pci_path }}
|
||||
|
||||
[Link]
|
||||
NamePolicy=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue