Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lvangink authored Sep 20, 2023
1 parent 91979e7 commit eefbeb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/nso/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit eefbeb4

Please sign in to comment.