Docs: Add playbook to regenerate known_hosts file
This commit is contained in:
parent
a2a5b29cd6
commit
8d9b47076b
9
coreos-config/regenerate-known-hosts.yaml
Normal file
9
coreos-config/regenerate-known-hosts.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Generate known_hosts file
|
||||
hosts: localhost
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: Run Keyscan
|
||||
shell: "ssh-keyscan {{ groups['all'] | map('extract', hostvars, 'inventory_hostname') | list | join(' ') }} >| known_hosts"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user