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. On Monday, 21 March 2016 13:24:33 UTC, Pandithurai S wrote: > > Hi Team, > > I need to access my jenkins environment variable in the script which i > placed in remote host. > > for ex: > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4b18c475-84eb-4f87-a955-5cd93cfbc3d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
