ansible-pyenv
ansible-pyenv copied to clipboard
Python installed would be owned by root
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"