How do you set the path variable?

43 views
Skip to first unread message

hindenburg

unread,
Mar 6, 2014, 4:28:50 PM3/6/14
to ansible...@googlegroups.com
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?

James Tanner

unread,
Mar 6, 2014, 6:18:24 PM3/6/14
to ansible...@googlegroups.com
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
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.

http://docs.ansible.com/playbooks_environment.html


Reply all
Reply to author
Forward
0 new messages