Search code examples
rundeck

Why Rundeck can't read custom remote node environment variables


I tried to run some commands on a remote node to test if Rundeck can display its environment variables, and it's weired that Rundeck can read the default env vars but not mine : command

And result is :

response

I have defined my custom environment variables in different places (inside /etc/profile and ~/.bash_profile) but no luck.. custom var


Solution

  • Non interactive bash shell reads from .bashrc not .bash_profile. You might move your env var setting to .bashrc and source that file from .bash_profile.