ansible-pyenv icon indicating copy to clipboard operation
ansible-pyenv copied to clipboard

Python installed would be owned by root

Open alexey-guryanov opened this issue 9 years ago • 0 comments

All tasks are executed under the same user. Some tasks (namely, apt) require root access, so the whole role should be executed with "sudo: yes". But in this case pyenv will be installed under root as well, and will go (by default) into /root/.pyenv. It can be overwritten by pyenv_root variable, but it would still be owned by root, which would prevent regular user from using it.

All operations with pyenv itself should be performed with explicit "sudo: no"

alexey-guryanov avatar Jun 24 '15 20:06 alexey-guryanov