Compare commits
No commits in common. "f94e4080e395daee8d143aa48b6703134caac2b7" and "060ee37c886584430cf17f2480eaea6395f72e50" have entirely different histories.
f94e4080e3
...
060ee37c88
4 changed files with 11 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
network_interface: link1
|
||||
network_pci_path: pci-0000:04:00.0
|
||||
network_mac: 00:1b:21:3b:50:e2
|
||||
|
||||
lan_ip: 192.168.2.1
|
||||
lan_gateway: 192.168.2.254
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
- src: "templates/network/link1.network.j2"
|
||||
dest: "/etc/systemd/network/98-link1.network"
|
||||
notify:
|
||||
- Restart systemd-networkd
|
||||
- Regenerate initramfs # copies the files into the initramfs for when udev needs them
|
||||
- restart systemd-networkd
|
||||
- regenerate initramfs # copies the files into the initramfs for when udev needs them
|
||||
|
||||
- name: Set hostname
|
||||
become: true
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
dest: "/etc/systemd/resolved.conf"
|
||||
mode: "0644"
|
||||
owner: root
|
||||
notify: Restart systemd-resolved
|
||||
notify: restart systemd-resolved
|
||||
|
||||
- name: Copy firewall template
|
||||
become: true
|
||||
|
|
@ -49,5 +49,5 @@
|
|||
group: root
|
||||
mode: "0644"
|
||||
notify:
|
||||
- Restart nftables
|
||||
- Restart docker service
|
||||
- restart nftables
|
||||
- restart docker service
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Match]
|
||||
Path={{ network_pci_path }}
|
||||
MACAddress={{ network_mac }}
|
||||
|
||||
[Link]
|
||||
NamePolicy=
|
||||
Name={{ network_interface }}
|
||||
RequiredForOnline=routable
|
||||
|
|
|
|||
|
|
@ -4,9 +4,12 @@
|
|||
Name={{ network_interface }}
|
||||
|
||||
[Network]
|
||||
Address={{ lan_ip }}/{{ lan_prefix }}
|
||||
Gateway={{ lan_gateway }}
|
||||
|
||||
DNS={{ lan_dns }}
|
||||
DNSOverTLS=yes
|
||||
DNSSEC=yes
|
||||
DHCP=ipv4
|
||||
|
||||
RequiredForOnline=routable
|
||||
IgnoreCarrierLoss=yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue