# How should I debug the git module hanging when specifying a hash for the version?

**URL:** <https://forum.ansible.com/t/how-should-i-debug-the-git-module-hanging-when-specifying-a-hash-for-the-version/14184>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [December 19, 2013, 4:06pm UTC](https://forum.ansible.com/t/how-should-i-debug-the-git-module-hanging-when-specifying-a-hash-for-the-version/14184 "2013-12-19T16:06:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [December 19, 2013, 4:06pm UTC](https://forum.ansible.com/t/how-should-i-debug-the-git-module-hanging-when-specifying-a-hash-for-the-version/14184/1 "2013-12-19T16:06:07Z")

</div>

Tell ansible to keep the remote script and then use use python -m trace to walk through it ...

ANSIBLE\_KEEP\_REMOTE\_FILES=1 ansible-playbook -vvvv

# grab the remote filename ansible creates

# ssh to the remote host

python -m trace --trace \<module-file-path\>

Example:

$ python -m trace --trace /home/jtanner/.ansible/tmp/ansible-1387469069.32-4132751518012/command 2\>&1 | head  
&nbsp;&nbsp;--- modulename: command, funcname: \<module\>  
command(21): import sys  
command(22): import datetime  
command(23): import traceback  
command(24): import re  
command(25): import shlex  
&nbsp;&nbsp;--- modulename: shlex, funcname: \<module\>  
shlex.py(2): """A lexical analyzer class for simple shell-like syntaxes."""  
shlex.py(10): import os.path  
shlex.py(11): import sys

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 19, 2013, 4:16pm UTC](https://forum.ansible.com/t/how-should-i-debug-the-git-module-hanging-when-specifying-a-hash-for-the-version/14184/2 "2013-12-19T16:16:35Z")

</div>

The git module often requires adding the host to known\_hosts or forwarding SSH creds.

We have an open ticket to add some additional options for auto-handling these kinds of things, which I hope to see resolved in 1.5.
