use local address if no wg address is set

This commit is contained in:
2022-08-10 10:44:32 +02:00
parent 2349ced3ed
commit fc2eea9d9b

View File

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