From eefbeb435815217b85fa8a250f8523bd62c3b8ef Mon Sep 17 00:00:00 2001 From: Lee Van Ginkel <65776483+lvangink@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:04:17 -0400 Subject: [PATCH] Update main.yml --- roles/nso/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nso/tasks/main.yml b/roles/nso/tasks/main.yml index 3abf4a7..a19aaa6 100644 --- a/roles/nso/tasks/main.yml +++ b/roles/nso/tasks/main.yml @@ -10,7 +10,7 @@ # the inventory # - set_fact: - nso_rest_url: "http://{{ hostvars[nso_hostname].ansible_host }}:8080" + nso_rest_url: "http://{{ hostvars[nso_hostname].ansible_host }}:{{ hostvars[nso_hostname].nso_api_port | default(8080) }}" when: "not nso_rest_url and nso_host_group in groups" vars: nso_hostname: "{{ groups[nso_host_group] | first }}"