i have a shell script which is setWLSEnv.sh on target machine, i run this first to set up web logic env
after that i run the command
java weblogic.WLST {{ pyhton file}}
now i get Error: could not find or load main class web logic.WLST
why i’m loosing the env variable set in previous command by running setWLSEnv.sh ?
my code is like this ,can somebody help me please
pre_tasks:
name: set up web logic env
command: /usr/bin/sh /path/setWLSEnv.sh
I would suggest setting the variables in the host_vars for the target
host. Maybe even encrypted with ansible_vault, if the contain sensible
information.