Removed known host manipulation

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2026-06-26 20:38:07 -05:00
parent f68466907f
commit 27cc36f9c0
-15
View File
@@ -1,15 +0,0 @@
---
- name: 'all'
hosts: 'all'
gather_facts: false
serial: 1
tasks:
- name: 'Remove known_host file entries'
delegate_to: 'localhost'
ansible.builtin.shell:
ssh-keygen -f ~/.ssh/known_hosts -R {{ inventory_hostname }}
- name: 'Add known_hosts file entries'
delegate_to: 'localhost'
ansible.builtin.shell:
ssh-keyscan {{ inventory_hostname }} >> ~/.ssh/known_hosts
...