run the shell script interactively in ansible playbook

I can run the script with the command line argument on the linux server it works fine.

for e.g.: ./install.sh -n -I

the above command is able to install the script on the server.

When I am trying to do via ansible (version 2.5) playbook using the shell module it gives me an argument error.

  • name: Running the script
    shell: yes | ./fullinstall

Expect modules has been tried.
–my-arg1=IP address
–some-argument=<>
above things are tried.

Sounds like this shell script isn’t intended to be used non interactively.

What does it look like, i.e. it’s content?
I’d try peeling off the shell wrapper logic and with any luck the actual commands are straight forward and hence better suited for automation tools such as ansible.

Dick