I'm trying to set the path variable in ansible

    - name: Export env variables
      shell: export PATH="PATH=/b/local/bin:/b/bin:$PATH"

    - shell: echo $PATH
      register: foo
    - debug: msg="the echo was {{ foo.stdout }}"

But when I echo the path, it doesn't contain the paths I appended.  Is 
there a way I can set the path variable for the execution of the yaml file?

-- 
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/55210d77-57b5-4ce4-8ef7-0f4a4088db7e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to