Re: [ansible-project] use environment variables of the remote host

25 views
Skip to first unread message

Brian Coca

unread,
Mar 31, 2016, 5:36:02 PM3/31/16
to ansible...@googlegroups.com
after fact gathering, the ansible_env variable is populated with the target host's environment vars.

​So ansible_env['PATH'] should have the path variable of the 'inventory_hostname' for the user that gathered facts.​

----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages