Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anaconda path issue #20

Closed
zonca opened this issue Aug 13, 2016 · 3 comments
Closed

Anaconda path issue #20

zonca opened this issue Aug 13, 2016 · 3 comments

Comments

@zonca
Copy link
Contributor

zonca commented Aug 13, 2016

I am testing on Ubuntu 16.04, I use the ubuntu as user and root as become_user.
the playbook sets the path to anaconda in /opt/conda/bin systemwide, in fact when I login either with root or ubuntu, it works fine.

However all tasks in the playbook that require anaconda fail. I fixed adding:

 environment:
    PATH: "/opt/conda/bin:{{ ansible_env.PATH }}"

to all tasks, but there must be a better way.
BTW cannot do at playbook level because ansible_env.PATH is undefined.

Any suggestion?

@ellisonbg
Copy link
Contributor

I don't know enough about the details of how ansible manages these things, especially wrt to the user and become_user setting. Not surprised that type of thing is needed though. Let us know if you fine a better way.

@zonca
Copy link
Contributor Author

zonca commented Aug 16, 2016

ok, I am testing a workaround, see:

ansible/ansible#14959 (comment)

@zonca
Copy link
Contributor Author

zonca commented Aug 16, 2016

ok, found the way to set the path just once at playbook level, much cleaner!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants