rvm / rvm1-ansible

The official ansible RVM role to install and manage your Ruby versions.
MIT License
271 stars 136 forks source link

Can not install 1.9.3 on Debian #130

Closed rombr closed 7 years ago

rombr commented 7 years ago

Hello, my playbook contains

- role: rvm_io.ruby
      become: yes
      rvm1_rubies: ['ruby-1.9.3']
      rvm1_install_flags: '--auto-dotfiles'
      rvm1_install_path: /usr/local/rvm
      rvm1_user: root

I get an error:

< TASK [rvm_io.ruby : Install rvm] >
 ----------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

fatal: [188.166.135.48]: FAILED! => {"changed": true, "cmd": ["/tmp/rvm-installer.sh", "stable", "--path", "/usr/local/rvm", "--auto-dotfiles"], "delta": "0:00:00.042643", "end": "2016-12-21 11:41:33.787967", "failed": true, "rc": 200, "start": "2016-12-21 11:41:33.745324", "stderr": "", "stdout": "Turning on auto dotfiles mode.\nDownloading https://github.com/rvm/rvm/archive/.tar.gz\n\nCould not download 'https://github.com/rvm/rvm/archive/.tar.gz'.\n  curl returned status '200'.\n\nDownloading https://bitbucket.org/mpapis/rvm/get/.tar.gz\n\nCould not download 'https://bitbucket.org/mpapis/rvm/get/.tar.gz'.\n  curl returned status '200'.", "stdout_lines": ["Turning on auto dotfiles mode.", "Downloading https://github.com/rvm/rvm/archive/.tar.gz", "", "Could not download 'https://github.com/rvm/rvm/archive/.tar.gz'.", "  curl returned status '200'.", "", "Downloading https://bitbucket.org/mpapis/rvm/get/.tar.gz", "", "Could not download 'https://bitbucket.org/mpapis/rvm/get/.tar.gz'.", "  curl returned status '200'."], "warnings": []}
    to retry, use: --limit @/home/rombr/Workspace/interactive-menu/ansible/web.retry
 ____________
< PLAY RECAP >
 ------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

188.166.135.48             : ok=26   changed=1    unreachable=0    failed=1   

What is wrong?

Thanks!

rombr commented 7 years ago

I found problem. There was not curl package in the system.

But after I installed curl.

 _____________________________________
< TASK [rvm_io.ruby : Install rubies] >
 -------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

this oparation "works" already more then 24 h.

What can it be?

pkuczynski commented 7 years ago

Press enter. This is known problem that installation waits for user acceptance.

rombr commented 7 years ago

@pkuczynski Thanks for advise but it did not help me

rombr commented 7 years ago

When I try to do manual install I get:

rvm install 1.9.3
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/debian/8/x86_64/ruby-1.9.3-p551.tar.bz2
Checking requirements for debian.
Installing requirements for debian.
Updating systemimenu password required for 'apt-get --quiet --yes update': 

How can I ecsape it using role options?

rombr commented 7 years ago

Root install helped me. Thanks!