Skip to content

Commit

Permalink
fix: debian os family ssh key (#782)
Browse files Browse the repository at this point in the history
Updates Ansible playbook for setting SSH keys to regenerate.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam committed Nov 22, 2023
1 parent 885878d commit 31ea442
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ansible/roles/configure/tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@

# Tasks for setting SSH keys to regenerate.
- name: "Setting SSH keys to regenerate."
blockinfile:
path: /etc/rc.local
create: yes
block: |
test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server
exit 0
lineinfile:
dest: /etc/rc.local
create: true
line: "#!/bin/bash\ntest -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server\nexit 0\n"
mode: '0755'

0 comments on commit 31ea442

Please sign in to comment.