I am running a script using rundeck that depends on access to system-wide environmental variables on the node I'm executing the script on. These variables have been set in /etc/environment.
First, how do I get rundeck to ingest the system environment? I can't find any option in rundeck to do this.
Second, why doesn't this happen by default? I'm under the impression that rundeck works through ssh; shouldn't the system environment be loaded every time it logs in to the node?
Environment variables are a shell feature. If your execution does not involve shells, then there won't be any environment variables either.