2020-12-02 18:11:18 +01:00

11 lines
346 B
Plaintext

[Interface]
Address = {{ vpn_network }}.{{item|int + 1}}/32
DNS = {{ vpn_network }}.1
PrivateKey = {{ private_key_files.results[item|int].stdout }}
[Peer]
PublicKey = {{ public_key_files.results[0].stdout }}
AllowedIPs = 0.0.0.0/0
Endpoint = {{ ansible_default_ipv4.address }}:{{ vpn_port }}
PersistentKeepalive = {{ vpn_persistent_keepalive }}