Code Monkey home page Code Monkey logo

ansible-pyenv's Introduction

Andy Dirnberger

This is my contact information.

ansible-pyenv's People

Contributors

dirn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-pyenv's Issues

pyenv is not put in PATH

Even though there is a task putting pyenv bin directory into PATH, but the code it produces is executed only if pyenv is already in PATH (basically it is never executed):

    - if which pyenv > /dev/null; then
    - "    export PYENV_ROOT=\\\"$HOME/.pyenv\\\""
    - "    export PATH=\\\"$PYENV_ROOT/bin:$PATH\\\""
    - "    eval \\\"$(pyenv init -)\\\""
    - "fi # pyenv"

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"

Deprecation warning on bare variables

TASK [pyenv : Install versions] ************************************************
task path: /Users/yujunz/Develop/denv/roles/pyenv/tasks/main.yml:4
[DEPRECATION WARNING]: Using bare variables is deprecated. Update your playbooks so that the environment value uses the full variable syntax ('{{pyenv_versions}}').
This feature
will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

Add pyenv init step

t would be great if we could automate pyenv init step to actually activate pyenv.

"Install versions" fails: "pyenv: No such file or directory"

When trying this role, it fails to install the versions:

TASK: [dirn.pyenv | Install versions] ***************************************** 
failed: [c.example.com] => (item=2.7.9) => {"cmd": "pyenv install 2.7.9", "failed": true, "item": "2.7.9", "rc": 2}
msg: [Errno 2] No such file or directory
failed: [c.example.com] => (item=3.4.3) => {"cmd": "pyenv install 3.4.3", "failed": true, "item": "3.4.3", "rc": 2}
msg: [Errno 2] No such file or directory
failed: [c.example.com] => (item=pypy-2.5.0) => {"cmd": "pyenv install pypy-2.5.0", "failed": true, "item": "pypy-2.5.0", "rc": 2}
msg: [Errno 2] No such file or directory
failed: [c.example.com] => (item=pypy3-2.4.0) => {"cmd": "pyenv install pypy3-2.4.0", "failed": true, "item": "pypy3-2.4.0", "rc": 2}
msg: [Errno 2] No such file or directory

FATAL: all hosts have already failed -- aborting

The pyenv command is not available yet: the Add to run commands task comes
later, and even then, the pyenv_runcom would need to be sourced before.

Deprecation warning on variable inclusion

statically included: /Users/yujunz/Develop/denv/roles/pyenv/tasks/osx/pyenv.yml
[DEPRECATION WARNING]: Specifying include variables at the top-level of the task is deprecated. Please see:
http://docs.ansible.com/ansible/playbooks_roles.html#task-include-files-
and-encouraging-reuse

for currently supported syntax regarding included files and variables.
This feature will be removed in a future release. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.