use local address if no wg address is set

This commit is contained in:
2022-08-10 10:47:00 +02:00
parent fc2eea9d9b
commit bd40d3c58d

View File

@@ -1,6 +1,6 @@
server:
ip-freebind: yes
{% if wg_local_ip %}
{% if wg_local_ip is defined %}
interface: {{ wg_local_ip | ipaddr('address') }}
{% else %}
interface: {{ ansible_default_ipv4.address }}