mirror of
https://github.com/BluemediaDev/homelab.git
synced 2025-05-11 06:31:35 +02:00
Add role to configure systemd-networkd
This commit is contained in:
parent
6c674ff530
commit
f226b09f0a
5 changed files with 63 additions and 7 deletions
|
@ -0,0 +1,7 @@
|
|||
[Match]
|
||||
MACAddress={{ hostvars[inventory_hostname]['mac'] }}
|
||||
|
||||
[Network]
|
||||
Address={{ hostvars[inventory_hostname]['ansible_host'] }}/{{ (hostvars[inventory_hostname]['ansible_host'] + '/' + netmask) | ansible.utils.ipaddr('prefix') }}
|
||||
Gateway={{ gateway }}
|
||||
DNS={{ nameserver }}
|
Loading…
Add table
Add a link
Reference in a new issue