<node name="luisao-ubuntu" description="Rundeck server node" tags="ubuntu" hostname="192.168.0.3" osArch="amd64" osFamily="unix" osName="Linux" osVersion="4.2.0-27-generic" username="luisao"
ssh-authentication="password"
ssh-password-storage-path="keys/server/ubuntu"
sudo-command-enabled="true"
sudo-password-storage-path="keys/server/ubuntu"
/>
Also, in the script that you define inside the job step, you have to set the "Invocation String" parameter like this: sudo ${scriptfile}