Skip to content

Commit

Permalink
Fix existing SSH host key check.
Browse files Browse the repository at this point in the history
This addresses issue unxmaal#4 about bootstrap ssh keys error. Previous condition did not seem to work.
  • Loading branch information
lassehe committed Jan 27, 2021
1 parent 2c0608a commit 2e1967b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/bootstrap/tasks/setup_sshd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
- "[>|#]"
command:
- /usr/nekoware/bin/ssh-keygen -f /usr/nekoware/etc/ssh_host_ecdsa_key -q -N ""
when: "{{ 'nekoware' in keyname }}"
when: keyname.output | select('search','No such file or directory') | list | count == 1

- name: Start sshd at bootup with chkconfig
telnet:
Expand Down

0 comments on commit 2e1967b

Please sign in to comment.