providing user input like expect script to command line installer

I have to install an old .sh installer that requires command line inputs. I know I can write an expect script to do this, but is there an ansible module equivalent way to do console interaction? It is literally 3 carriage returns and the letter Y…

Thanks!
Brian

You could transfer the input file and use the shell module with “<” to feed in the input.

wouldn’t it be easier to modify the shell script to not need the prompts?