Comments (7)
the strange thing is that I get the error using this playbook fragment:
- role: rvm_io.rvm1-ruby
when: installeer_ruby
sudo: true
rvm1_user: '{{rvmuser}}'
rvm1_rvm_version: 'stable'
rvm1_rvm_check_for_updates: false
rvm1_gpg_keys: ''
rvm1_rubies:
- 'ruby-1.9.3-p551'
rvm1_install_flags: '--auto-dotfiles --user-install'
rvm1_install_path: '/home/{{rvmuser}}/.rvm'
environment:
http_proxy: http://172.4.7.16:8080
https_proxy: https://172.4.2.7.16:80
After the failure I log in as the specified user and can do a manual install without problem using
curl -sSL https://get.rvm.io | bash -s stable
Which I assume is the underlying action of the install task.
Nevertheless the playbook gives me that error. When I rerun the playbook after the manual install, the task is not skipped, but tried again, leading to the same message
from rvm1-ansible.
I saw in your playbook that the task 'install rvm installer' actually does this:
curl -sSL https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer> /tmp//rvm-installer.sh
I did that manually and the step was skipped indeed. Thereafter, it hangs at
TASK: [rvm_io.rvm1-ruby | Install bundler if not installed] *******************
and eventually reports:
stderr: ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) (https://api.rubygems.org/specs.4.8.gz)
It appears that that can only be fixed manually by setting the http-proxy in the shell. OR by inserting the environment var htttps_prody in your task (like in my 2nd post, but that obviously does noting)
Is there another way to easily use a proxy with this rvm1-ansible role?
And I still have to tackle the certificate problem properly.
from rvm1-ansible.
Setting up a proxy seems a bit out of scope for this role, check out this related issue #6.
from rvm1-ansible.
I already did what was suggested there, namely supplying a .curlrc.
But this only works for the curl commands. And not for the rvm commands. If I only know how I can feed the shell with the necessary environment variables, I would be greatly helped. Don't you have an advice on this? I don;t want to tamper with the rvm1-ansible code. When I add them to your code, it works all right, but this not a solution. Isn't there a config file or so that the shell loads when the role commands are run?
from rvm1-ansible.
Unfortunately I'm not an expert with rvm. This role just helps you get rvm installed via ansible. @mpapis, any ideas?
from rvm1-ansible.
mpapis en nick, although I feel really shamed, I want to report that the problem is gone after deleting the user (with its rvm install and config files) and running the same (previously failing) playbook again.
I want to thank you for your time spent on this.
from rvm1-ansible.
No problem, glad you got it working.
from rvm1-ansible.
Related Issues (20)
- I don't get it. HOT 2
- Installing bundler fails when using a <major>.<minor>-latest version of Ruby
- bundler conflict HOT 3
- Regression: rubies are not installed HOT 6
- Configuration of autolibs when RVM is already installed
- How to do mixed-user install with this?
- Improving installation of Bundler HOT 11
- Ansible --check mode fails on "Delete ruby if relevant" HOT 1
- Migrate to a new "Continuous Integration as a Service" Platform HOT 1
- Problem installing rubies with rvm1_user HOT 1
- Use rvm/ubuntu_rvm ppa for ubuntu distributions
- Error while evaluating conditional (not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or gpg_import.rc != 0)): 'dict object' has no attribute 'rc'
- Deprecation warnings HOT 1
- Import GPG keys from keyservers] / ipv4.pool.sks-keyservers.net HOT 2
- Ruby 3.0.0 is not installing HOT 4
- ruby install hangs on user input HOT 12
- CI Builds are not running HOT 4
- Releases not being pulled by Ansible Galaxy HOT 16
- Install bundler if not installed - fail HOT 2
- newb documentation question HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rvm1-ansible.