Files
gitlab-mirror/roles/sshd/tasks/encryption.yml
Alexander Gorelyshev 37222f515e Fix handlers
2026-06-08 14:14:09 +04:00

12 lines
288 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 ssh"
ansible.builtin.file:
path: "{{ item }}"
state: absent