Closed didlix closed 7 years ago
I'm running into the same problem, #37 fixes the issue for me.
I'm having the same problem, too. No activity on #37 though. Is that the best solution?
@jawspeak Can you confirm if #37 fixes it for you?
It did not. My error was on 'Update rvm' not 'Select default ruby'
TASK: [rvm_io.rvm1-ruby | Update rvm] *****************************************
...
failed: [192.168.33.10] => {"changed": false, "cmd": "/usr/local/rvm/bin/rvm get stable && /usr/local/rvm/bin/rvm reload", "delta": "0:00:00.152132", "end": "2016-01-03 00:38:52.647760", "rc": 1, "start": "2016-01-03 00:38:52.495628", "warnings": []}
stderr: Archives path '/usr/local/rvm/archives' not writable, aborting.
FATAL: all hosts have already failed -- aborting
I had to add this:
- name: Update rvm
shell: '{{ rvm1_rvm }} get {{ rvm1_rvm_version }} && {{ rvm1_rvm }} reload'
changed_when: False
when: rvm_binary.stat.exists and rvm1_rvm_check_for_updates
# sudo_user: '{{ rvm1_user }}' <--- doesn't work
sudo: yes
My playbook had:
- hosts: all
any_errors_fatal: true
roles:
- { role: rvm_io.rvm1-ruby, tags: ruby, sudo: yes }
Although then it has another error. Still working through this. I might go back to manually installing it in my own tasks.
Looks this in an issue of playbook. I close this issue but feel free to re-open
Tried this:
And this: