init
This commit is contained in:
commit
883f31932e
169 changed files with 5676 additions and 0 deletions
20
ansible/roles/wireguard/templates/wg.conf.j2
Normal file
20
ansible/roles/wireguard/templates/wg.conf.j2
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[Interface]
|
||||
PrivateKey = {{ wg_private_key_file.content | b64decode | trim }}
|
||||
Address = {{ wg_address }}
|
||||
ListenPort = {{ wg_port }}
|
||||
|
||||
{% for peer in wg_peers %}
|
||||
{% if peer.name is defined %}
|
||||
# {{ peer.name }}
|
||||
{% endif %}
|
||||
[Peer]
|
||||
PublicKey = {{ peer.public_key }}
|
||||
AllowedIPs = {{ peer.allowed_ips }}
|
||||
{% if peer.endpoint is defined %}
|
||||
Endpoint = {{ peer.endpoint }}
|
||||
{% endif %}
|
||||
{% if peer.persistent_keepalive | default(false) %}
|
||||
PersistentKeepalive = {{ wg_persistent_keepalive }}
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue