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

2016-03-31 Thread Brian Coca
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 -- You received this message because you are

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

2016-03-30 Thread mondher khas
environment variables - Hello , i use ansible to run tasks in remote machine , i want to work with variables from this remote machine . i tried to use lookup module but it return the variables of my machine to the remote one . i have no idea haw to do it . thanks in advance.