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 1dae3fe commit e99eb1d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tasks/portal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@
- include_tasks: slurm.yml
when: galaxy_lrms == "slurm"

- name: Set public_ip_address to default IP
set_fact:
public_ip_address: "{{ ansible_default_ipv4.address }}"
- name: Set public_ip_address to Public IP
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 e99eb1d

Please sign in to comment.