I'm quite new to Rundeck and is evaluating it as alternate to Jenkins to run our adhoc operational tasks.
We have all commands & scripts on the Rundeck server that needs to be run as specific user, eg.: ubuntu.
I tried change configurations at some places like /etc/rundeck/framework.properties (framework.ssh.user=ubuntu) and /var/rundeck/projects/myproject/etc/resources.xml (set username="ubuntu" for localhost node) but my job anyway always run as user 'rundeck', that's quite frustrating as at first I thought it should be simple to achieve that.
So, am I missing something or Rundeck cannot run script locally as different user to 'rundeck'?
UPDATE: I found one solution for now, that's to use the Script step then in the advance option Invocation String I can set like "sudo -u ubuntu" to that so my script runs as ubuntu from rundeck.
However it's still not really convenient for using that sudo, for example environment variables preserving issue.