12 lines
288 B
YAML
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
|