mirror of
https://github.com/pikami/mail-server.git
synced 2024-12-02 23:05:42 +00:00
14 lines
326 B
Django/Jinja
14 lines
326 B
Django/Jinja
{% set _wg = lookup('vars', inventory_hostname + '_wg') %}
|
|
# {{ ansible_managed }}
|
|
[Interface]
|
|
PrivateKey = {{ _wg.private_key }}
|
|
ListenPort = {{ _wg.port }}
|
|
|
|
{% for peer in _wg.peers %}
|
|
[Peer]
|
|
# {{ peer.name }}
|
|
PublicKey = {{ peer.public_key }}
|
|
Endpoint = {{ peer.endpoint }}
|
|
AllowedIPs = {{ peer.allowed_ips }}
|
|
{% endfor %}
|