|
|
@ -65,7 +65,7 @@ PersistentKeepalive = {{hostvars[host].wireguard_persistent_keepalive}}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
%}
|
|
|
|
%}
|
|
|
|
Endpoint = {{hostvars[host].wireguard_dc['endpoint']}}:{{hostvars[host].wireguard_dc['port']}}
|
|
|
|
Endpoint = {{hostvars[host].wireguard_dc['endpoint']}}:{{hostvars[host].wireguard_dc['port']}}
|
|
|
|
{% elif hostvars[host].wireguard_port is defined and hostvars[host].wireguard_port is number %}
|
|
|
|
{% elif hostvars[host].wireguard_port is defined %}
|
|
|
|
{% if hostvars[host].wireguard_endpoint is defined and hostvars[host].wireguard_endpoint != "" %}
|
|
|
|
{% if hostvars[host].wireguard_endpoint is defined and hostvars[host].wireguard_endpoint != "" %}
|
|
|
|
Endpoint = {{hostvars[host].wireguard_endpoint}}:{{hostvars[host].wireguard_port}}
|
|
|
|
Endpoint = {{hostvars[host].wireguard_endpoint}}:{{hostvars[host].wireguard_port}}
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|