acccess my environment variable in remote host

16 views
Skip to first unread message

Pandithurai S

unread,
Mar 21, 2016, 9:24:33 AM3/21/16
to Ansible Project, pans...@cisco.com
Hi Team,

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

for ex:


Uditha Desilva

unread,
Mar 23, 2016, 7:52:19 AM3/23/16
to Ansible Project, pans...@cisco.com
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.
Reply all
Reply to author
Forward
0 new messages