Hi, I created a decorator to solve this:
https://gist.github.com/guettli/6972365 The user name must not be in the source code, since it can be different. Works fine. Am 11.10.2013 23:26, schrieb Jens Rantil:
Hi Thomas, I would probably have one task that make two calls to `execute`[1], one for the root user execution, and one for the user user execution. [1] http://docs.fabfile.org/en/1.8/api/core/tasks.html?highlight=execute#fabric.tasks.execute Here's a small example: https://gist.github.com/JensRantil/6942269 I haven't executed it, but it should be "fairly" runnable ;) Possibly, you might have to specify a host for executing the `supertask` with. Cheers, Jens On Thu, Oct 10, 2013 at 10:17 AM, Thomas Güttler <h...@tbz-pariv.de <mailto:h...@tbz-pariv.de>> wrote: Hi, I found several ways to solve this: first connect as root@host (for example: create user "user"). Then connect as user@host. This should be done in one task. Please tell me the simplest or best way to do this. Thank you. _________________________________________________ Fab-user mailing list Fab-user@nongnu.org <mailto:Fab-user@nongnu.org> https://lists.nongnu.org/__mailman/listinfo/fab-user <https://lists.nongnu.org/mailman/listinfo/fab-user>
_______________________________________________ Fab-user mailing list Fab-user@nongnu.org https://lists.nongnu.org/mailman/listinfo/fab-user