infrastructure/ansible/tasks/regenerate-known-hosts.yaml
Tobias Manske e6255c76e3
Some checks failed
continuous-integration/drone/push Build is failing
Per Device SSH-Keys
2023-09-14 12:05:56 +02:00

10 lines
253 B
YAML

---
- 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(' ') }} | sort >| ../known_hosts"