File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
ansible/roles/openondemand/tasks
environments/common/inventory/group_vars/all Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 128128# loop:
129129# - /var/www/ood/public
130130# - /usr/share/ondemand-dex/web/themes/
131+
132+ - name : Keyscan login host
133+ command :
134+ cmd : " ssh-keyscan {{ openondemand_clusters.slurm.v2.login.host }}"
135+ register : _openondemand_login_key
136+ changed_when : false
137+
138+ - name : Add login hostkeys to known hosts
139+ blockinfile :
140+ path : /etc/ssh/ssh_known_hosts
141+ create : true
142+ block : " {{ _openondemand_login_key.stdout_lines | sort | join('\n ') }}"
143+ marker : " # {mark} ANSIBLE MANAGED BLOCK: openondemand login host" # allows other tasks to use blockinfile on this file
144+ owner : root
145+ group : root
146+ mode : o=rw,go=r
Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ openondemand_dashboard_links_grafana:
2424 url : " {{ grafana_url_openondemand_proxy }}"
2525openondemand_dashboard_links : " {{ openondemand_dashboard_links_grafana if groups['grafana'] | length > 0 }}"
2626
27+ openondemand_login_host : localhost
28+
2729openondemand_clusters :
2830 slurm :
2931 v2 :
3032 metadata :
3133 title : " {{ openhpc_cluster_name }}" # interpolation here works as openondemand is lexically after openhpc
3234 login :
33- host : " {{ hostvars[groups['login'].0].api_address }}"
35+ host : " {{ openondemand_login_host }}"
3436 default : true
3537 job :
3638 adapter : slurm
You can’t perform that action at this time.
0 commit comments