skeleton for unmanged hosts
parent
d5b81cb75e
commit
9fdcbd9ac7
@ -0,0 +1,14 @@
|
||||
{{ ansible_managed | comment }}
|
||||
# For unmanaged host {{ item.item.host }}
|
||||
# qrencode -t ansiutf8 < /etc/wireguard/{{ item.item.host }}.conf
|
||||
[Interface]
|
||||
PrivateKey = {{ item.stdout }}
|
||||
Address = {{ item.item.allowed_ips }}
|
||||
{% if item.item.dns is defined %}
|
||||
DNS = {{ item.item.dns }}
|
||||
{% endif %}
|
||||
|
||||
[Peer]
|
||||
Endpoint = {{ wireguard_endpoint }}:{{ wireguard_port }}
|
||||
PublicKey = {{ public_key }}
|
||||
AllowedIPs = 0.0.0.0/0, ::/0
|
@ -0,0 +1,4 @@
|
||||
wireguard_address: "10.8.0.11"
|
||||
wireguard_port: "51820"
|
||||
wireguard_dns: "1.1.1.1"
|
||||
wireguard_mtu: "1492"
|
@ -0,0 +1,4 @@
|
||||
wireguard_address: "10.8.0.10"
|
||||
wireguard_port: "51820"
|
||||
wireguard_dns: "1.1.1.1"
|
||||
wireguard_mtu: "1492"
|
Loading…
Reference in New Issue