aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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