Closed geerlingguy closed 4 years ago
For now, on the servers where this was happening, I manually ran sudo /usr/local/rvm/bin/rvm remove ruby-2.3.1
to get the old version removed. Couldn't figure out why the error was happening though :-/
I was able to fix it by changing when statement in "Detect if ruby version can be deleted" and "Delete ruby version" from when: rvm1_delete_ruby
to when: rvm1_delete_ruby is defined
in "Detect if ruby version can be deleted"
and from when: rvm1_delete_ruby and detect_delete_ruby.rc == 0
to when: (rvm1_delete_ruby is defined) and (detect_delete_ruby.rc == 0)
in "Delete ruby version"
This is being addressed in https://github.com/rvm/rvm1-ansible/pull/212 (wip).
master
and seems to work well (except a bug on "check" mode #218). I believe we can close for now!
When I try to delete an older version of ruby using
rvm1_delete_ruby
, I get the following error:Tried this on two servers where I had
rvm1_rubies: ['ruby-2.3.3']
originally, then setrvm1_rubies: ['ruby-2.3.4']
, and added the variablervm1_delete_ruby: ruby-2.3.1
and ran the playbook again.