File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
ansible/roles/openondemand/tasks Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 131
131
132
132
- name : Keyscan login host
133
133
command :
134
- cmd : " ssh-keyscan -t ssh-ed25519 {{ openondemand_clusters.slurm.v2.login.host }}"
134
+ cmd : " ssh-keyscan {{ openondemand_clusters.slurm.v2.login.host }}"
135
135
register : _openondemand_login_key
136
136
changed_when : false
137
137
138
- - name : Add login hostkey to known hosts
139
- lineinfile :
140
- path : /etc/ssh/known_hosts
138
+ - name : Add login hostkeys to known hosts
139
+ blockinfile :
140
+ path : /etc/ssh/ssh_known_hosts
141
141
create : true
142
- line : " {{ _openondemand_login_key.stdout }}"
143
- regexp : " ^{{ openondemand_clusters.slurm.v2. login. host}} "
142
+ block : " {{ _openondemand_login_key.stdout }}"
143
+ marker : " # {mark} ANSIBLE MANGED BLOCK: openondemand login host" # allows other tasks to use blockinfile on this file
144
144
owner : root
145
145
group : root
146
146
mode : o=rw,go=r
You can’t perform that action at this time.
0 commit comments