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 .
-
|
i itried to use “{{ ansible_env.PATH }}” but it return the PATH of my machine . i want to have the PATH of the remote host mentioned in the file /etc/ansible/hosts not the Path of my machine in which i installed ansible
|- |
-
thanks in advance.
ANSIBLE VERSION- 2.0.1
CONFIGURATION- /etc/ansible/ansible.cfg (configuration)
- /etc/ansible/hosts (list of remote hosts)