2017-08-28 10:09:48 -07:00
|
|
|
- name: Remove ssh key
|
|
|
|
command: "shred ~/.ssh/id_rsa"
|
|
|
|
|
2020-05-16 17:27:04 +02:00
|
|
|
- name: Remove host key information from known hosts
|
2017-08-28 10:09:48 -07:00
|
|
|
known_hosts:
|
|
|
|
name: "{{ ssh_key.fqdn }}"
|
|
|
|
key: "{{ ssh_key.ssh_known_hosts }}"
|
|
|
|
state: absent
|
|
|
|
when: ssh_key.ssh_known_hosts is defined and ssh_key.fqdn is defined
|