GithubHelp home page GithubHelp logo

ansible-role-pyenv's People

Contributors

azmodude avatar krfricke avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-role-pyenv's Issues

Make new release?

Hi @azmodude!

It looks like there was a fix here to update a checksum (and allow an override) - but the current release in ansible-galaxy doesn't include it. Could we get a new release made?

aea4790

Here's the error I'm seeing:

TASK [azmodude.pyenv : Get user information from passwd getent database] ******************************************************************************************************************************************************************************************************
ok: [10.233.0.44]

TASK [azmodude.pyenv : Set fact from home directories] ************************************************************************************************************************************************************************************************************************
ok: [10.233.0.44] => (item={'name': 'ec2-user'})

TASK [azmodude.pyenv : Check if pyenv is installed in pyenv_root] *************************************************************************************************************************************************************************************************************
ok: [10.233.0.44] => (item={'name': 'ec2-user'})

TASK [azmodude.pyenv : include_tasks] *****************************************************************************************************************************************************************************************************************************************
included: /Users/vincebroz/src/deploy/vendored_roles/azmodude.pyenv/tasks/packages.yml for 10.233.0.44

TASK [azmodude.pyenv : Set common packages as fact] ***************************************************************************************************************************************************************************************************************************
ok: [10.233.0.44]

TASK [azmodude.pyenv : Install packages to compile Python versions (RedHat)] **************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['gcc', 'patch', 'sqlite-devel', 'readline-devel', 'openssl-
devel', 'bzip2-devel', 'gdbm-devel', '{{ common }}']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [10.233.0.44] => (item=[]) 

TASK [azmodude.pyenv : Install packages to compile Python versions (Fedora)] **************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "dnf" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['gcc', 'patch', 'sqlite-devel', 'readline-devel', 'openssl-
devel', 'bzip2-devel', 'gdbm-devel', '{{ common }}']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [10.233.0.44] => (item=[]) 

TASK [azmodude.pyenv : Install packages to compile Python versions (Debian)] **************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['gcc', 'patch', 'libsqlite3-dev', 'libreadline-dev', 
'libbz2-dev', 'libssl-dev', 'libgdbm-dev', '{{ common }}']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [10.233.0.44] => (item=[]) 

TASK [azmodude.pyenv : Install packages to compile Python versions (SuSE)] ****************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "zypper" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['gcc', 'patch', 'sqlite3-devel', 'readline-devel', 
'libbz2-devel', 'libopenssl-devel', 'gdbm-devel', '{{ common }}']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [10.233.0.44] => (item=[]) 

TASK [azmodude.pyenv : include_tasks] *****************************************************************************************************************************************************************************************************************************************
included: /Users/vincebroz/src/deploy/vendored_roles/azmodude.pyenv/tasks/install.yml for 10.233.0.44

TASK [azmodude.pyenv : Create temporary file to hold download] ****************************************************************************************************************************************************************************************************************
changed: [10.233.0.44]

TASK [azmodude.pyenv : Download pyenv installer] ******************************************************************************************************************************************************************************************************************************
fatal: [10.233.0.44]: FAILED! => {"changed": false, "msg": "The checksum for /tmp/ansible.nqSvkopyenv did not match 9c383fc9b36330b27ed622a107bd8e9c3f52bbb48d65c5421d4f32685e6cd0c6; it was 6c03d10bc18f2db6e1975c61f3f922a91ab65713b6aeb4289457f9208daabe1d."}
	to retry, use: --limit @/Users/vincebroz/src/deploy/playbooks/jenkins/agent.retry

pyenv install fails when ansible user != pyenv_user

Looks like you're downloading the pyenv installer script as ansible_env.USER instead of pyenv_user, and not chowning it:

TASK [azmodude.pyenv : Run pyenv installer] *************************************************************************
fatal: [vsdemo7]: FAILED! => {"changed": false, "cmd": "/tmp/pyenv-installer creates: /home/my_pyenv_user/.pyenv/bin/pyenv", "failed": true, "msg": "[Errno 13] Permission denied", "rc": 13}

when I SSH in:

± ssh ansible_user@host
Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-30-generic x86_64)

Last login: Thu Sep 21 13:20:25 2017 from 192.168.88.100
ansible_user@host:~$ ls -l /tmp/pyenv-installer 
-rwx------ 1 ansible_user ansible_user 2099 Sep 21 13:53 /tmp/pyenv-installer

I have the following vars set:

    pyenv_user: "{{ my_app_user }}"
    pyenv_root: "/home/{{ my_app_user }}/.pyenv"

however my_app_user != ansible_env.USER.

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.