# file module hangs

**URL:** <https://forum.ansible.com/t/file-module-hangs/17520>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [February 16, 2015, 3:30am UTC](https://forum.ansible.com/t/file-module-hangs/17520 "2015-02-16T03:30:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Tanner](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Post date:** [February 16, 2015, 3:30am UTC](https://forum.ansible.com/t/file-module-hangs/17520/1 "2015-02-16T03:30:20Z")

</div>

Did a git pull and now the file module is hanging randomly on my ubuntu servers.

I followed the tips for debugging found here:

[http://willthames.github.io/2014/04/28/debugging-ansible-for-fun-and-no-profit.html](http://willthames.github.io/2014/04/28/debugging-ansible-for-fun-and-no-profit.html)

[http://michaeldehaan.net/post/35403909347/tips-on-using-debuggers-with-ansible](http://michaeldehaan.net/post/35403909347/tips-on-using-debuggers-with-ansible)

And to my surprise the module ran as expected without having.

With ANSIBLE\_KEEP\_REMOTE\_FILES active I can run the module and it returns without hanging.

How can I continue to debug this issue?

---

<div class="post-metadata">

**Author:** ![Bob\_Tanner](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Post date:** [February 16, 2015, 3:36am UTC](https://forum.ansible.com/t/file-module-hangs/17520/2 "2015-02-16T03:36:30Z")

</div>

Seems like some previous play is causing issues or problems with plays further down in the playbook. Not sure how to debug this.

---

<div class="post-metadata">

**Author:** ![Bob\_Tanner](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Post date:** [February 16, 2015, 4:00am UTC](https://forum.ansible.com/t/file-module-hangs/17520/3 "2015-02-16T04:00:01Z")

</div>

Looks like the same bug as listed here: [http://bit.ly/1CyR3Ok](http://bit.ly/1CyR3Ok)

Previous host set the sudo password and every host after sudo doesn’t work.
