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 %}