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
known_hosts module fail when ssh-keygen exit with 1 #23727
Comments
Observing the same in ansible 2.3.1.0 |
Still affects Ansible 2.4.1 |
Same here (Ansible 2.5.2)
In my case, check-mode fails too and the cause is a badly formatted key (should be |
!component =lib/ansible/modules/system/known_hosts.py |
bot_status |
Componentslib/ansible/modules/system/known_hosts.py Metadatawaiting_on: maintainer |
Componentslib/ansible/modules/system/known_hosts.py Metadatawaiting_on: maintainer |
This has been resolved by 13aff08 and there should be a more informative error message. |
ISSUE TYPE
Bug Report
COMPONENT NAME
modules.system.known_hosts
ANSIBLE VERSION
CONFIGURATION
not configuration specific
OS / ENVIRONMENT
Running Ansible from: Mac
Managing: Ubuntu 1604
SUMMARY
Using known_hosts to add a new host entry gives me an unexplained error
I'm pretty sure it's these lines in
sanity_check
(persist in devel branch too)While the other place with
ssh-keygen -F
allowsrc==1
While I want to try fix this, I'm not able to get the test suite pass using either
ansible-test units --local
(no pytest), oransible-test units --docker
(no python 2.6)STEPS TO REPRODUCE
EXPECTED RESULTS
OK (changed)
ACTUAL RESULTS
fail with:
The text was updated successfully, but these errors were encountered: