new syntax

This commit is contained in:
2024-07-22 15:17:21 +02:00
parent 82e1ce04da
commit 54e77e73cf
2 changed files with 2 additions and 2 deletions

View File

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