Hi, is it anyway i can use ansible.builtin.raw with echo the password first or anything like that?
I am working with a weird system where i can only use ansible raw module. But i need to prompt the password to the scp command.
Hi, is it anyway i can use ansible.builtin.raw with echo the password first or anything like that?
I am working with a weird system where i can only use ansible raw module. But i need to prompt the password to the scp command.
Raw module runs the script in user default shell, so yes you can run more complicated scripts via raw module.
But I think the answer you are looking for is not really ansible related, see:
linux - How to pass password to scp? - Stack Overflow