Skip to content

Commit

Permalink
Update Lab URL for RHEL VM (#9013)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieloh30 authored Jan 22, 2025
1 parent a4ff768 commit 5d2f688
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions ansible/roles/novnc/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,41 @@
- name: User info block for default noVNC port
when: novnc_proxy_port is not defined
block:
- name: Set a variable
set_fact:
lab_ui_url: https://{{ novnc_host_fqdn }}:6080/vnc.html?host={{ novnc_host_fqdn }}&port=6080&autoconnect=true&resize=remote

- name: print noVNC user.info
agnosticd_user_info:
msg: |
noVNC Web URL: https://{{ novnc_host_fqdn }}:6080/vnc.html?host={{ novnc_host_fqdn }}&port=6080&autoconnect=true&resize=remote
noVNC Password: {{ student_password }}
- name: Set a variable
set_fact:
showroom_primary_view_url: https://{{ novnc_host_fqdn }}:6080/vnc.html?host={{ novnc_host_fqdn }}&port=6080&autoconnect=true&resize=remote
Lab UI URL: "{{ lab_ui_url }}"
- name: Save noVNC user data
agnosticd_user_info:
data:
novnc_web_url: "https://{{ novnc_host_fqdn }}:6080/vnc.html?host={{ novnc_host_fqdn }}&port=6080&autoconnect=true&resize=remote"
novnc_user_password: "{{ student_password }}"
showroom_primary_view_url: https://{{ novnc_host_fqdn }}:6080/vnc.html?host={{ novnc_host_fqdn }}&port=6080&autoconnect=true&resize=remote
lab_ui_url: "{{ lab_ui_url }}"

- name: User info block for custom noVNC port
when: novnc_proxy_port is defined
block:
- name: Set a variable
set_fact:
lab_ui_url: https://{{ novnc_host_fqdn }}/vnc.html?autoconnect=true&resize=remote

- name: print noVNC user.info
agnosticd_user_info:
msg: |
noVNC Web URL: https://{{ novnc_host_fqdn }}/vnc.html?autoconnect=true&resize=remote
noVNC Password: {{ student_password }}
Lab UI URL: "{{ lab_ui_url }}"
- name: Save noVNC user data
agnosticd_user_info:
data:
novnc_web_url: "https://{{ novnc_host_fqdn }}/vnc.html?autoconnect=true&resize=remote"
novnc_user_password: "{{ student_password }}"
lab_ui_url: "{{ lab_ui_url }}"

0 comments on commit 5d2f688

Please sign in to comment.