debian-setup/templates/network/wireguard/default/mobile.wireguard.j2
sonny a777228013 Refactor default wireguard setup
- Replaced set_fact based setup with lookup plugin
- Replaced inline definition of credentials with alternative
  systemd file directives
2025-03-01 14:24:13 +01:00

11 lines
367 B
Django/Jinja

# {{ ansible_managed }}
[Interface]
Address={{ vpn_peers.mobile.ip }}/24
PrivateKey={{ lookup("file", vpn_peers.mobile.private_key_source_path) }}
[Peer]
PublicKey={{ lookup("file", vpn_server_public_key_path) }}
PresharedKey={{ lookup("file", vpn_peers.mobile.preshared_key_path) }}
AllowedIPs={{ vpn_listen_address }}/32
Endpoint={{ domain_name }}:{{ vpn_port }}