# expect module does not answer questions on remote and it hangs

**URL:** <https://forum.ansible.com/t/expect-module-does-not-answer-questions-on-remote-and-it-hangs/37886>\
**Category:** Ansible Project\
**Created:** [April 14, 2023, 7:55am UTC](https://forum.ansible.com/t/expect-module-does-not-answer-questions-on-remote-and-it-hangs/37886 "2023-04-14T07:55:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lavanya\_VJ](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@Lavanya\_VJ](https://forum.ansible.com/u/Lavanya_VJ)\
**Post date:** [April 14, 2023, 7:55am UTC](https://forum.ansible.com/t/expect-module-does-not-answer-questions-on-remote-and-it-hangs/37886/1 "2023-04-14T07:55:14Z")

</div>

Hi all,  
i am facing the issues with expect module though the timeout: 600 is mentioned, i always get “msg”: “command exceeded timeout” or it hangs , i have around 25 reponses to answer after the command has been executed.

- name: install file  
expect:  
command: /tmp/install.run  
responses:  
‘path? [/tmp/output]:’: ‘/tmp/output/new’  
‘Run after installation? [yes]:’: ‘yes’

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [April 14, 2023, 8:56am UTC](https://forum.ansible.com/t/expect-module-does-not-answer-questions-on-remote-and-it-hangs/37886/2 "2023-04-14T08:56:50Z")

</div>

Hi  
Please do not ask exactly the same question is multiple messages

---

<div class="post-metadata">

**Author:** ![Lavanya\_VJ](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@Lavanya\_VJ](https://forum.ansible.com/u/Lavanya_VJ)\
**Post date:** [April 14, 2023, 9:05am UTC](https://forum.ansible.com/t/expect-module-does-not-answer-questions-on-remote-and-it-hangs/37886/3 "2023-04-14T09:05:22Z")

</div>

Hi sorry , i commented on the past post (2017) last time and hence i assumed thats was invalid.

---

<div class="post-metadata">

**Author:** ![Lavanya\_VJ](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@Lavanya\_VJ](https://forum.ansible.com/u/Lavanya_VJ)\
**Post date:** [April 15, 2023, 4:09am UTC](https://forum.ansible.com/t/expect-module-does-not-answer-questions-on-remote-and-it-hangs/37886/4 "2023-04-15T04:09:17Z")

</div>

Hi all,

when I tried to debug Output I checked it runs up to a certain point and then I get “installation aborted by user” though I didnot abort. I appreciate your help
