Commit 6d16f85b by Michael DeHaan

Suggest keyscan for github/other SCM hanging.

parent aae3a0ea
...@@ -83,10 +83,9 @@ options: ...@@ -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 = '''
......
...@@ -74,11 +74,9 @@ options: ...@@ -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: [ ]
''' '''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment