Skip to content

Commit 739dbe0

Browse files
committed
make known_hosts idempotent for OOD login host
1 parent 541906f commit 739dbe0

File tree

1 file changed

+1
-1
lines changed
  • ansible/roles/openondemand/tasks

1 file changed

+1
-1
lines changed

ansible/roles/openondemand/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
blockinfile:
140140
path: /etc/ssh/ssh_known_hosts
141141
create: true
142-
block: "{{ _openondemand_login_key.stdout }}"
142+
block: "{{ _openondemand_login_key.stdout_lines | sort | join('\n') }}"
143143
marker: "# {mark} ANSIBLE MANGED BLOCK: openondemand login host" # allows other tasks to use blockinfile on this file
144144
owner: root
145145
group: root

0 commit comments

Comments
 (0)