aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2025-12-28 11:30:16 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2025-12-28 11:30:16 +0100
commitdb78f7a3b81ae597309a7c62a0efaa750bb56838 (patch)
treec1e21458516b8b421e78fb6b384c3b0bb2f8fd76
parent9e8a66d8fbe7068617ef5d5563bc16076d10d97c (diff)
downloadinfra-db78f7a3b81ae597309a7c62a0efaa750bb56838.tar.gz
infra-db78f7a3b81ae597309a7c62a0efaa750bb56838.tar.bz2
infra-db78f7a3b81ae597309a7c62a0efaa750bb56838.tar.xz
infra-db78f7a3b81ae597309a7c62a0efaa750bb56838.zip
lhn2pi: wifi
-rw-r--r--ansible/host_vars/lhn2pi/all.yml1
-rw-r--r--ansible/plays/host-lhn2pi.yml1
-rw-r--r--ansible/plays/templates/lhn2pi/systemd/network/20-wifi.network9
3 files changed, 10 insertions, 1 deletions
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