On Wednesday 08 December 2021 at 23:23:10, Aleksandar Ilic wrote:

> 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?

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.

-- 
"In fact I wanted to be John Cleese and it took me some time to realise that 
the job was already taken."

 - Douglas Adams

                                                   Please reply to the list;
                                                         please *don't* CC me.

Reply via email to