On 03/06/2014 04:28 PM, hindenburg wrote:
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[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 <https://groups.google.com/d/msgid/ansible-project/55210d77-57b5-4ce4-8ef7-0f4a4088db7e%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/groups/opt_out.

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


--
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/53190240.4070900%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to