Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Nov 20, 2024
1 parent ad519cf commit 1dae3fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/portal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
set_fact:
public_ip_address: "{{ IM_NODE_PUBLIC_IP }}"
when: IM_NODE_PUBLIC_IP is defined and IM_NODE_PUBLIC_IP != ""
- name: Set public_ip_address to default IP
set_fact:
public_ip_address: "{{ ansible_default_ipv4.address }}"
when: IM_NODE_PUBLIC_IP is not defined or IM_NODE_PUBLIC_IP != ""
- name: Set default DNS name (nip.io)
set_fact:
dns_name: "galaxy.{{ public_ip_address }}.nip.io"
Expand Down

0 comments on commit 1dae3fe

Please sign in to comment.