From e99eb1db45375723366d7d829c60153e2b1cf7e9 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Wed, 20 Nov 2024 12:12:58 +0100 Subject: [PATCH] Fix test --- tasks/portal.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tasks/portal.yml b/tasks/portal.yml index 7d36253..ccb4f8d 100644 --- a/tasks/portal.yml +++ b/tasks/portal.yml @@ -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"