Ansible does not pickup remote host environment variables

I have one shell script in remote host.
I am trying to invoke that shell script through ansible. Remote shell script loads some of the environment variables and classpath variable values. But, shell script does not load the variable values.
How to fix this. please suggest.


Can you please share more details here like your script, playbook etc so that we can have better understanding of what exactly is happening.