I'm running Ansble v2.4.0.0 in a RHEL7.2 box.

I'm trying to setup the PATH variable with the following simple task, but 
I'm getting a syntax error.

tasks/main.yml
--------------

---
- name: Append to PATH variable
  environment:
    PATH: /usr/some_other/bin:{{ ansible_env.PATH }} 

...or...

tasks/main.yml
--------------

---
- name: Append to PATH variable
  environment:
    PATH: /usr/some_other/bin:{{ lookup('env','PATH') }}

Both give me syntax errors. What is the correct way to do this?

-- 
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/62d79785-670c-491a-8de8-1a2c572ee926%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to