From 3c0f9efbb3109df0fb24750bc57f9549b9e7ae85 Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Sun, 25 Jan 2026 13:57:27 +0100 Subject: [PATCH] feat(wg_quick): allow specifying an optional PresharedKey --- roles/wg_quick/templates/wg-quick.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/wg_quick/templates/wg-quick.conf.j2 b/roles/wg_quick/templates/wg-quick.conf.j2 index ef3dd85..e5297e9 100644 --- a/roles/wg_quick/templates/wg-quick.conf.j2 +++ b/roles/wg_quick/templates/wg-quick.conf.j2 @@ -26,4 +26,7 @@ AllowedIPs = {{ _peer.allowed_ips | join(', ') }} {% if _peer.persistent_keepalive %} PersistentKeepalive = {{ _peer.persistent_keepalive }} {% endif %} +{% if 'psk' in _peer %} +PresharedKey = {{ _peer.psk }} +{% endif %} {% endfor %}