parent
1d08be491a
commit
ed24147b3a
|
@ -60,6 +60,14 @@
|
||||||
loop: '{{ ssh_hardening_hostkeys }}'
|
loop: '{{ ssh_hardening_hostkeys }}'
|
||||||
notify: Restart SSH
|
notify: Restart SSH
|
||||||
|
|
||||||
|
|
||||||
|
- name: "Renew RSA hostkeys if too short"
|
||||||
|
openssh_keypair:
|
||||||
|
path: /etc/ssh/ssh_host_rsa_key
|
||||||
|
type: rsa
|
||||||
|
size: 4096
|
||||||
|
when: '"rsa" in ssh_hardening_hostkeys'
|
||||||
|
|
||||||
####################
|
####################
|
||||||
|
|
||||||
- name: "INCLUDE: Remove small Diffie-Hellman moduli"
|
- name: "INCLUDE: Remove small Diffie-Hellman moduli"
|
||||||
|
|
Loading…
Reference in a new issue