Shell script doesn't run completely even on using async

Hi all,

I have an interactive shell script(vendor install script ) that i need to run.
The script has 50+ Q’s and i used Ansible shell module with “expect” args to automate it .
Manually the script takes 10+ mins to complete.
In shell module i added async of 1000 as well.
Though the playbook succeeds, the script doesn’t install all the necessities that it should do.
Manually it installs all the requirements and completes it’s job.
But via Ansible its not completing the script.

Can someone suggest what needs to be done??

Hi,

Give Ansible’s “expect” module a try. (It will require Python3’s “pexpect”)

I used it for an interactive software installation and it worked pretty well for me.

Alex