Output wireguard client config files
This commit is contained in:
11
ansible/roles/gateway/files/wireguard-server.conf
Normal file
11
ansible/roles/gateway/files/wireguard-server.conf
Normal file
@ -0,0 +1,11 @@
|
||||
[Interface]
|
||||
Address = {{ wireguard.server.ip }}
|
||||
PrivateKey = {{ wireguard.server.private_key }}
|
||||
ListenPort = {{ wireguard.port }}
|
||||
|
||||
{% for name, config in wireguard.clients.items() %}
|
||||
[Peer]
|
||||
# {{ name }}
|
||||
PublicKey = {{ config.public_key }}
|
||||
AllowedIPs = {{ config.ip }}/32
|
||||
{% endfor %}
|
Reference in New Issue
Block a user