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_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_ip: 192.168.2.1
|
||||||
lan_gateway: 192.168.2.254
|
lan_gateway: 192.168.2.254
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@
|
||||||
- src: "templates/network/link1.network.j2"
|
- src: "templates/network/link1.network.j2"
|
||||||
dest: "/etc/systemd/network/98-link1.network"
|
dest: "/etc/systemd/network/98-link1.network"
|
||||||
notify:
|
notify:
|
||||||
- Restart systemd-networkd
|
- restart systemd-networkd
|
||||||
- Regenerate initramfs # copies the files into the initramfs for when udev needs them
|
- regenerate initramfs # copies the files into the initramfs for when udev needs them
|
||||||
|
|
||||||
- name: Set hostname
|
- name: Set hostname
|
||||||
become: true
|
become: true
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
dest: "/etc/systemd/resolved.conf"
|
dest: "/etc/systemd/resolved.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
owner: root
|
owner: root
|
||||||
notify: Restart systemd-resolved
|
notify: restart systemd-resolved
|
||||||
|
|
||||||
- name: Copy firewall template
|
- name: Copy firewall template
|
||||||
become: true
|
become: true
|
||||||
|
|
@ -49,5 +49,5 @@
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify:
|
notify:
|
||||||
- Restart nftables
|
- restart nftables
|
||||||
- Restart docker service
|
- restart docker service
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Match]
|
[Match]
|
||||||
Path={{ network_pci_path }}
|
MACAddress={{ network_mac }}
|
||||||
|
|
||||||
[Link]
|
[Link]
|
||||||
NamePolicy=
|
NamePolicy=
|
||||||
Name={{ network_interface }}
|
Name={{ network_interface }}
|
||||||
RequiredForOnline=routable
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,12 @@
|
||||||
Name={{ network_interface }}
|
Name={{ network_interface }}
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
|
Address={{ lan_ip }}/{{ lan_prefix }}
|
||||||
|
Gateway={{ lan_gateway }}
|
||||||
|
|
||||||
DNS={{ lan_dns }}
|
DNS={{ lan_dns }}
|
||||||
DNSOverTLS=yes
|
DNSOverTLS=yes
|
||||||
DNSSEC=yes
|
DNSSEC=yes
|
||||||
DHCP=ipv4
|
|
||||||
|
|
||||||
|
RequiredForOnline=routable
|
||||||
IgnoreCarrierLoss=yes
|
IgnoreCarrierLoss=yes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue