Code Monkey home page Code Monkey logo

Comments (6)

dylanninin avatar dylanninin commented on July 21, 2024 3

In install versions command, pyenv should be prefixed with full qualified path:

- name: Install versions
  command: creates={{ pyenv_root }}/versions/{{ item }} {{ pyenv_root }}/bin/pyenv install {{ item }}
  with_items: "{{ pyenv_versions }}"

from ansible-pyenv.

musicformellons avatar musicformellons commented on July 21, 2024

I got the same error:
TASK: [dirn.pyenv | Install versions] *****************************************
failed: [127.0.0.1] => (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

from ansible-pyenv.

osman-masood avatar osman-masood commented on July 21, 2024

@dirn Yep, getting the same issue.

from ansible-pyenv.

dirn avatar dirn commented on July 21, 2024

@blueyed, @musicformellons, and @oamasood, what OS?

from ansible-pyenv.

osman-masood avatar osman-masood commented on July 21, 2024

@dirn
It's from within an Ubuntu 14.04 Docker container. Here's the dockerfile:

FROM ansible/ubuntu14.04-ansible:stable
MAINTAINER Osman Masood <[email protected]>

WORKDIR /root
ADD . my_dir

RUN ansible-galaxy install dirn.pyenv  # Install Ansible role for pyenv from Galaxy

ADD ansible/container-bootstrap.yml /srv/ansible/container-bootstrap.yml
WORKDIR /srv/ansible
RUN ansible-playbook -v container-bootstrap.yml -c local

And my container-bootstrap.yml:

- name: Bootstrap gettalent/base_service_container image
  hosts: local
  tasks:
    - name: update core libs
      apt: update_cache=yes
    - name: install basic packages
      apt: pkg={{ item }} update_cache=yes cache_valid_time=259200  # 3 days
      with_items:
        - curl
        - wget
        - build-essential
        - gcc
        - make
        - zlib1g-dev  
        - libbz2-dev
        - libmysqlclient-dev
        - libreadline-dev
        - libxml2-dev
        - libxslt-dev
        - libssl-dev
        - nginx
        - git
    - name: install Python and Basic Tools
      apt: pkg={{ item }} update_cache=yes cache_valid_time=259200  # 3 days
      with_items:
        - python
        - python-dev
        - python-distribute
        - python-pip
        - python-setuptools
        - software-properties-common
        - python-software-properties


- name: Install python 2.7.9 in pyenv
  hosts: local
  roles:
    - role: dirn.pyenv
      pyenv_virtualenv: false
      pyenv_runcom: ~/.bashrc
      pyenv_versions:
        - 2.7.9
      pyenv_default_versions:
        - 2.7.9
      pyenv_project_versions:
        - 2.7.9

Thanks.

from ansible-pyenv.

dirn avatar dirn commented on July 21, 2024

Awesome. This will be a huge help.

from ansible-pyenv.

Related Issues (6)

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.