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)
OS / ENVIRONMENT
- CentOS 7
--
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/b883d537-b9e6-4311-885a-4fb6aa7b6ad4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.