Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use known_hosts ansible module instead of ssh-keyscan #1

Open
maximecolin opened this issue Jul 9, 2015 · 1 comment
Open

Use known_hosts ansible module instead of ssh-keyscan #1

maximecolin opened this issue Jul 9, 2015 · 1 comment

Comments

@maximecolin
Copy link
Owner

http://docs.ansible.com/known_hosts_module.html

@boscowitch
Copy link

known_hosts module can't add remote keys therefore one would need 2 tasks acutally... one to get the remote key into a variable over stdout (probably also using ssh-keyscan) and then the known_hosts module to write it to the known hosts file ... would actually not be more performant but the upside might be no double adding of keys...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants