Files
gitlab-mirror/roles/sshd/tasks/encryption.yml
Sergey Malyuk 30945d5a2f add sshd role
2025-12-18 11:39:09 +03:00

12 lines
287 B
YAML

---
- name: "Encryption | remove unsafe host keys"
loop:
- /etc/ssh/ssh_host_ecdsa_key
- /etc/ssh/ssh_host_ecdsa_key.pub
- /etc/ssh/ssh_host_dsa_key
- /etc/ssh/ssh_host_dsa_key.pub
notify: Restart sshd
ansible.builtin.file:
path: "{{ item }}"
state: absent