diff options
author | Michael Scherer <mscherer@users.noreply.github.com> | 2016-04-28 20:27:18 +0200 |
---|---|---|
committer | René Moser <mail@renemoser.net> | 2016-04-28 20:27:18 +0200 |
commit | 94ec38cda823b7b40d7a722e148cb55ce8110a30 (patch) | |
tree | f3081930daeb237948871a863c9dbbf5f3808357 /source_control/git.py | |
parent | e78ee3b128b1e5dd49b739cad488ddd1947bc7ca (diff) | |
download | ansible-modules-core-94ec38cda823b7b40d7a722e148cb55ce8110a30.tar.gz |
Add a better solution for the ssh_known_hosts issue
Fix https://github.com/ansible/ansible/issues/10172 too
Diffstat (limited to 'source_control/git.py')
-rw-r--r-- | source_control/git.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source_control/git.py b/source_control/git.py index ea310254..04ef7dda 100644 --- a/source_control/git.py +++ b/source_control/git.py @@ -179,7 +179,8 @@ requirements: notes: - "If the task seems to be hanging, first verify remote host is in C(known_hosts). SSH will prompt user to authorize the first contact with a remote host. To avoid this prompt, - one solution is to add the remote host public key in C(/etc/ssh/ssh_known_hosts) before calling + one solution is to use the option accept_hostkey. Another solution is to + add the remote host public key in C(/etc/ssh/ssh_known_hosts) before calling the git module, with the following command: ssh-keyscan -H remote_host.com >> /etc/ssh/ssh_known_hosts." ''' |