summaryrefslogtreecommitdiff
path: root/ansible/roles/mox
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-08-11 09:21:11 +0100
committerJoe Carstairs <me@joeac.net>2026-08-11 09:21:11 +0100
commit8485fb4f58995937ba7b0a3104ee998fe8aea4b0 (patch)
treeff41ef33e771774e584a03baba0d0433c1f30155 /ansible/roles/mox
parent6972d4799af8849fb3ea9c884da00cb900f41973 (diff)
fix mox ipv6 config
Diffstat (limited to 'ansible/roles/mox')
-rw-r--r--ansible/roles/mox/templates/mox.conf14
1 files changed, 7 insertions, 7 deletions
diff --git a/ansible/roles/mox/templates/mox.conf b/ansible/roles/mox/templates/mox.conf
index c3367cc..489ef02 100644
--- a/ansible/roles/mox/templates/mox.conf
+++ b/ansible/roles/mox/templates/mox.conf
@@ -14,15 +14,15 @@ Listeners:
Enabled: true
public:
IPs:
-{% if "address" in ansible_facts.default_ipv4 %}
- - {{ ansible_facts.default_ipv4.address }}
-{% endif %}
-{% if "address" in ansible_facts.default_ipv6 %}
- - {{ ansible_facts.default_ipv6.address }}
-{% endif %}
+{% for interface in ansible_facts.interfaces | reject("eq", "lo") %}
+ - {{ ansible_facts[interface].ipv4.address }}
+{% for ipv6 in ansible_facts[interface].ipv6 | selectattr("scope", "eq", "global") %}
+ - {{ ipv6.address }}
+{% endfor %}
+{% endfor %}
NATIPs:
- {{ router.wan.ipv4 }}
- - {{ router.wan.ipv6 }}
+ - {{ ansible_facts.default_ipv6.address }}
AccountHTTPS:
Enabled: true
AdminHTTPS: