For me, the solution was to remount /tmp without the 'noexec' perms
vi /etc/fstab sudo mount -o remount /tmp
also: https://feijiangnan.blogspot.com/2020/12/rundeck-inline-script-permission-denied.html