10 lines
243 B
YAML
10 lines
243 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(' ') }} >| known_hosts"
|
||
|
|
||
|
|