acccess my environment variable in remote host

Hi Team,

I need to access my jenkins environment variable in the script which i placed in remote host.

for ex:

Sorry, not clear to me what machine you’re setting your environment variable.

If it’s on the Ansible controller, look it up and pass it to the module on the controller, Ansible will “embed” all such arguments into the module source before pushing it over to the remote node.

If it’s on the remote system, well… Ansible doesn’t source your environment there, so you will need to read that out of your config file and parse it (via the controller) before passing it to the module.