generated from nicolabelluti/template-ansible
Added the "install_wireguard" role
This commit is contained in:
13
roles/install_wireguard/templates/wg0.conf.j2
Normal file
13
roles/install_wireguard/templates/wg0.conf.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ ansible_managed | comment('plain') }}
|
||||
|
||||
[Interface]
|
||||
PrivateKey = {{ keys["server_private"] }}
|
||||
ListenPort = {{ install_wireguard__server_port }}
|
||||
Address = {{ install_wireguard__server_ip }}
|
||||
PostUp = /etc/wireguard/iptables.sh %i -A
|
||||
PostDown = /etc/wireguard/iptables.sh %i -D
|
||||
|
||||
[Peer]
|
||||
PublicKey = {{ keys["peer_public"] }}
|
||||
PresharedKey = {{ keys["preshared"] }}
|
||||
AllowedIPs = {{ install_wireguard__peer_ip }}
|
||||
Reference in New Issue
Block a user