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?