Suggest keyscan for github/other SCM hanging.

This commit is contained in:
Michael DeHaan 2013-10-31 18:00:08 -04:00
parent 422bba7b4c
commit 50ef750a25
2 changed files with 6 additions and 9 deletions

View file

@ -83,10 +83,9 @@ options:
the normal mechanism for resolving binary paths will be used. the normal mechanism for resolving binary paths will be used.
notes: notes:
- If the task seems to be hanging, first verify remote host is in C(known_hosts). - 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. One solution is to add SSH will prompt user to authorize the first contact with a remote host. To avoid this prompt,
C(StrictHostKeyChecking no) in C(.ssh/config) which will accept and authorize the connection one solution is to add the remote host public key in C(/etc/ssh/ssh_known_hosts) before calling
on behalf of the user. However, if you run as a different user such as setting sudo to True), the git module, with the following command: ssh-keyscan remote_host.com >> /etc/ssh/ssh_known_hosts.
for example, root will not look at the user .ssh/config setting.
''' '''
EXAMPLES = ''' EXAMPLES = '''

View file

@ -74,11 +74,9 @@ options:
the normal mechanism for resolving binary paths will be used. the normal mechanism for resolving binary paths will be used.
notes: notes:
- If the task seems to be hanging, first verify remote host is in C(known_hosts). - 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. One solution is to add SSH will prompt user to authorize the first contact with a remote host. To avoid this prompt,
C(StrictHostKeyChecking no) in C(.ssh/config) which will accept and authorize the connection one solution is to add the remote host public key in C(/etc/ssh/ssh_known_hosts) before calling
on behalf of the user. However, if you run as a different user such as setting sudo to True), the hg module, with the following command: ssh-keyscan remote_host.com >> /etc/ssh/ssh_known_hosts.
for example, root will not look at the user .ssh/config setting.
requirements: [ ] requirements: [ ]
''' '''