k3s_setup/roles/wireguard/templates/wireguard-nodevpn.conf.j2

11 lines
226 B
Plaintext
Raw Normal View History

2019-12-18 13:15:52 +00:00
[Interface]
PrivateKey = {{wg_private_key}}
ListenPort = 51820
{% for vars in hostvars.values() %}
[Peer]
Endpoint = {{vars.ansible_ssh_host}}:51820
PublicKey = {{vars.wg_public_key}}
AllowedIPs = {{vars.wg_ip}}
{% endfor %}