Run shell script that needs user input

Hello everyone,

I have been trying to find a solution to run a sh script via ansible but the script requires users that run the script to enter username and password.

Is it possible to pass those vars via ansible?

Regards

a) not unless the script supports it

b) you might try using 'expect' to see if that can pretend to be a user at a
keyboard.

Antony.

You can also use the Ansible -e and use the variable is the script.

Mike