Ansible Expect module not responding to questions

Hi,

Having some trouble in responding to questions of expect module in my code. Any help appreciated… Below is the code & traceback.

BR

Code:

Your stdout is empty, that means your program have not prompted any text that the expect module could response to, hence the timeout.

Thanks Kai!
Yes was wondering about that but unfortunately the script ‘/root/dadock-installer/assets/bin/configure.sh’ interact when ran manually.

BR

Might be that the script detect it's not running interactively.
Since it's a shell script it should be possible to read the code and figure out what it does.

Hi Kai,

I got the same command working via ‘shell’ module & interact via - spawn/expect/send.

Though I am still wondering why pexpect doesn’t do the same when I can see that the script does get triggered from process logs.

BR