Fix private_ip checking

This commit is contained in:
2022-10-17 22:47:10 +02:00
parent d2d8ebd8cc
commit 315f5a1805
2 changed files with 1 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ services:
NODE_ID: "{{ ansible_facts.nodename }}"
MASTER_KEY: "{{ netmaker.master_key }}" # The admin master key for accessing the API. Change this in any production installation.
{% if not private_ipv4_address %}
{% if not private_ipv4_address and not netmaker.dynamicIp %}
SERVER_HOST: "{{ ansible_facts.default_ipv4.address }}" # Set to public IP of machine.
{% endif %}
SERVER_NAME: "netmaker-broker.{{ netmaker.base_domain }}" # The domain/host IP indicating the mq broker address