expect module does not answer questions on remote and it hangs

136 views
Skip to first unread message

Lavanya VJ

unread,
Apr 14, 2023, 3:56:04 AM4/14/23
to ansible...@googlegroups.com
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'
         ----
      timeout: 600

Dick Visser

unread,
Apr 14, 2023, 4:57:25 AM4/14/23
to ansible...@googlegroups.com
Hi
Please do not ask exactly the same question is multiple messages

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAGmnkn3Y4DpQAwELUSREcp8kGGBwYhZb6ZR00uGEuyTz%3D71XZw%40mail.gmail.com.

Lavanya VJ

unread,
Apr 14, 2023, 5:06:13 AM4/14/23
to ansible...@googlegroups.com
Hi sorry , i commented on the past post (2017) last time and hence i assumed thats was invalid.

Lavanya VJ

unread,
Apr 15, 2023, 12:09:45 AM4/15/23
to ansible...@googlegroups.com
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 



On 14. Apr 2023, at 11:05, Lavanya VJ <ratnakar...@gmail.com> wrote:


Reply all
Reply to author
Forward
0 new messages