In the same way you got it working in one way... Sorry I am unclear with what you wrote, is the line between code tags work?
Or are you saying you cannot... Because truly already that line is unclear...
What I intent to do is to run a command remotely using a role user.
In the target host the command will be execute by a role user, not a normal usr.
That's it all that I need to know
---------- Post updated at 09:58 AM ---------- Previous update was at 09:44 AM ----------
The command will not be executed interactivilly, it will be executed automatically with a script invoked by a cron in a server that is going to do a ssh to the intended server and executed the command with a role user on the target server.