Skip to content

Commit 3961e7d

Browse files
poppenelnappo
authored andcommitted
added no passphrase option to ssh-keygen for avoiding hanging during key generation
1 parent cf22560 commit 3961e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
when: ssh_disable_password_login
3131

3232
- name: Create host keys
33-
command: ssh-keygen {{ item.parm }} -f {{ ssh_sshd_config_dir }}{{ item.file }} creates={{ ssh_sshd_config_dir }}{{ item.file }}
33+
command: ssh-keygen {{ item.parm }} -f {{ ssh_sshd_config_dir }}{{ item.file }} -N '' creates={{ ssh_sshd_config_dir }}{{ item.file }}
3434
with_items:
3535
- { parm: "-t ed25519", file: "ssh_host_ed25519_key" }
3636
- { parm: "-t rsa -b 4069", file: "ssh_host_rsa_key" }

0 commit comments

Comments
 (0)