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 128
128
# loop:
129
129
# - /var/www/ood/public
130
130
# - /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:
24
24
url : " {{ grafana_url_openondemand_proxy }}"
25
25
openondemand_dashboard_links : " {{ openondemand_dashboard_links_grafana if groups['grafana'] | length > 0 }}"
26
26
27
+ openondemand_login_host : localhost
28
+
27
29
openondemand_clusters :
28
30
slurm :
29
31
v2 :
30
32
metadata :
31
33
title : " {{ openhpc_cluster_name }}" # interpolation here works as openondemand is lexically after openhpc
32
34
login :
33
- host : " {{ hostvars[groups['login'].0].api_address }}"
35
+ host : " {{ openondemand_login_host }}"
34
36
default : true
35
37
job :
36
38
adapter : slurm
You can’t perform that action at this time.
0 commit comments