diff options
author | Aaditya Dhruv <[email protected]> | 2025-04-22 17:29:46 -0500 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2025-05-01 20:19:51 -0500 |
commit | 55298a51cb0cc5e68c5a43869f2f32b899d3a622 (patch) | |
tree | 50d271288502bcff6f0a5133ce0839d883ee8ef7 /roles/wireguard/templates/wireguard.slave.j2 |
init
Diffstat (limited to 'roles/wireguard/templates/wireguard.slave.j2')
-rw-r--r-- | roles/wireguard/templates/wireguard.slave.j2 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/wireguard/templates/wireguard.slave.j2 b/roles/wireguard/templates/wireguard.slave.j2 new file mode 100644 index 0000000..b6a01b8 --- /dev/null +++ b/roles/wireguard/templates/wireguard.slave.j2 @@ -0,0 +1,11 @@ +[Interface] +Address = {{ wireguard_ip }}/24 +ListenPort = {{ network.wireguard.port }} +PrivateKey = {{ privatekey }} +DNS = {{ network.dns }} + +[Peer] +PublicKey = {{ hostvars[groups['cloud'][0]]['ansible_local']['wireguard']['PublicKey'] }} +AllowedIPs = 0.0.0.0/0 +Endpoint = {{ hostvars[groups['cloud'][0]]['ansible_default_ipv4']['address'] }}:{{ network.wireguard.port }} +PersistentKeepalive = 15 |