From db78f7a3b81ae597309a7c62a0efaa750bb56838 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 28 Dec 2025 11:30:16 +0100 Subject: lhn2pi: wifi --- ansible/host_vars/lhn2pi/all.yml | 1 + ansible/plays/host-lhn2pi.yml | 1 - ansible/plays/templates/lhn2pi/systemd/network/20-wifi.network | 9 +++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ansible/plays/templates/lhn2pi/systemd/network/20-wifi.network diff --git a/ansible/host_vars/lhn2pi/all.yml b/ansible/host_vars/lhn2pi/all.yml index 447906a..1a14858 100644 --- a/ansible/host_vars/lhn2pi/all.yml +++ b/ansible/host_vars/lhn2pi/all.yml @@ -1,2 +1,3 @@ systemd_networkd__files: - lhn2pi/systemd/network/10-eth0.network + - lhn2pi/systemd/network/20-wifi.network diff --git a/ansible/plays/host-lhn2pi.yml b/ansible/plays/host-lhn2pi.yml index 551c3dd..2a96f73 100644 --- a/ansible/plays/host-lhn2pi.yml +++ b/ansible/plays/host-lhn2pi.yml @@ -2,5 +2,4 @@ - lhn2pi roles: - systemd-networkd - - prometheus-bird-exporter - prometheus-node-exporter diff --git a/ansible/plays/templates/lhn2pi/systemd/network/20-wifi.network b/ansible/plays/templates/lhn2pi/systemd/network/20-wifi.network new file mode 100644 index 0000000..75b4587 --- /dev/null +++ b/ansible/plays/templates/lhn2pi/systemd/network/20-wifi.network @@ -0,0 +1,9 @@ +[Match] +Type=wlan +WLANInterfaceType=station + +[Network] +DHCP=yes + +[IPv6AcceptRA] +DHCPv6Client=no -- cgit v1.2.3