The *ssh-hostkeys* role is used to manage the global SSH host key database. This file is consulted by the `ssh` command when verifying remote host keys on first connect. If the host key is found here, it is copied to the user's host key database file without prompting for verification.
6 lines
137 B
YAML
6 lines
137 B
YAML
- name: ensure global ssh host key database is populated
|
|
copy:
|
|
src=ssh_known_hosts
|
|
dest=/etc/ssh/ssh_known_hosts
|
|
mode=0644
|