Comments (7)
I'm getting the same error, after that I ssh logged in to the server, the ruby was installed ok but not set as default
from rvm1-ansible.
I'm getting the same error when I try to install ruby 2.0.0. It seems that the "Install bundler if not installed" task doesn't work correctly. So, the symlinking mechanism doesn't work as expected.
failed: [xx.xx.xx.xx] => (item=bundle) => {"failed": true, "item": "bundle", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /usr/local/rvm/wrappers/default/bundle", "path": "/usr/local/bin/bundle", "src": "/usr/local/rvm/wrappers/default/bundle", "state": "absent"}
failed: [xx.xx.xx.xx] => (item=bundler) => {"failed": true, "item": "bundler", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /usr/local/rvm/wrappers/default/bundler", "path": "/usr/local/bin/bundler", "src": "/usr/local/rvm/wrappers/default/bundler", "state": "absent"}
from rvm1-ansible.
I was having the same problem because the 'rvm1_default_ruby_version' variable's value was '3', therefore it tried to create a default alias for '3', and naturally it failed. I didn't have time to further investigate this, but you can work around the problem by setting 'rvm1_default_ruby_version' manually. In my case the role looks like this:
- { role: rvm_io.rvm1-ruby, rvm1_rubies: '{{ ruby_version }}', rvm1_default_ruby_version: '{{ ruby_version }}', tags: ruby, sudo: True }
from rvm1-ansible.
You may find this commit useful.
from rvm1-ansible.
@hsamadi thanks for that! You should submit a pull request 👍
from rvm1-ansible.
rvm1_rubies is a list, so you must define it as such, in your case:
rvm1_rubies: [ '{{ ruby_version }}' ]
from rvm1-ansible.
I'm getting something similar, but only for rake:
failed: [localhost] (item=rake) => {"ansible_loop_var": "item", "changed": false, "gid": 0, "group": "root", "item": "rake", "mode": "0755", "msg": "refusing to convert from file to symlink for /usr/local/bin/rake", "owner": "root", "path": "/usr/local/bin/rake", "size": 517, "state": "file", "uid": 0}
what does this mean? is there a workaround?
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.