{"action":"closed","issue":{"url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/49","labels_url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/49/comments","events_url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/49/events","html_url":"https://github.com/rvm/rvm1-ansible/issues/49","id":87986747,"number":49,"title":"Error (wrong wrapper dir) while trying to install bundler after Ruby 2.2.2","user":{"login":"jinhianlee","id":5054233,"avatar_url":"https://avatars.githubusercontent.com/u/5054233?v=3","gravatar_id":"","url":"https://api.github.com/users/jinhianlee","html_url":"https://github.com/jinhianlee","followers_url":"https://api.github.com/users/jinhianlee/followers","following_url":"https://api.github.com/users/jinhianlee/following{/other_user}","gists_url":"https://api.github.com/users/jinhianlee/gists{/gist_id}","starred_url":"https://api.github.com/users/jinhianlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinhianlee/subscriptions","organizations_url":"https://api.github.com/users/jinhianlee/orgs","repos_url":"https://api.github.com/users/jinhianlee/repos","events_url":"https://api.github.com/users/jinhianlee/events{/privacy}","received_events_url":"https://api.github.com/users/jinhianlee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-13T11:13:29Z","updated_at":"2015-06-16T14:36:28Z","closed_at":"2015-06-16T14:36:27Z","body":"Hi,\r\n\r\nI've encountered an error when the script tries to install bundler after installing Ruby 2.2.2 - its trying to run ```gem``` commands from a missing directory: ```/home/vagrant/.rvm/wrappers/2.2.2/```\r\n\r\nThe correct directory appears to be ```/home/vagrant/.rvm/wrappers/ruby-2.2.2/```\r\n\r\nPlatform: fresh install of Ubuntu 14.04 on a VirtualBox VM using Vagrant on an OS X host.\r\n \r\nThe role config is:\r\n```\r\n- role: rvm_io.rvm1-ruby\r\n          rvm1_install_flags: '--auto-dotfiles --user-install'\r\n          rvm1_install_path: '/home/{{ ansible_ssh_user }}/.rvm'\r\n          rvm1_rvm_version: 'stable'\r\n          rvm1_rvm_check_for_updates: True\r\n          rvm1_user: vagrant\r\n          rvm1_rubies:\r\n              - '2.2.2'\r\n          sudo: True\r\n```\r\n\r\nHere's the full error output (vvv):\r\n```\r\n==> default: TASK: [rvm_io.rvm1-ruby | Install bundler if not installed] ******************* \r\n==> default: <127.0.0.1> REMOTE_MODULE command creates=/home/vagrant/.rvm/wrappers/2.2.2/bundler /home/vagrant/.rvm/wrappers/2.2.2/gem list | if ! grep \"^bundler \" ; then /home/vagrant/.rvm/wrappers/2.2.2/gem install bundler ; fi #USE_SHELL\r\n==> default: <127.0.0.1> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1434192757.44-60640508941126 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1434192757.44-60640508941126 && echo $HOME/.ansible/tmp/ansible-tmp-1434192757.44-60640508941126']\r\n==> default: <127.0.0.1> PUT /tmp/tmp3hKVvO TO /root/.ansible/tmp/ansible-tmp-1434192757.44-60640508941126/command\r\n==> default: <127.0.0.1> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p \"[sudo via ansible, key=ccoaibhpfmqqlhuzmhxhvgnmmyvvzrqh] password: \" -u root /bin/sh -c '\"'\"'echo BECOME-SUCCESS-ccoaibhpfmqqlhuzmhxhvgnmmyvvzrqh; LANG=C LC_CTYPE=C /usr/bin/python /root/.ansible/tmp/ansible-tmp-1434192757.44-60640508941126/command; rm -rf /root/.ansible/tmp/ansible-tmp-1434192757.44-60640508941126/ >/dev/null 2>&1'\"'\"''\r\n==> default: failed: [127.0.0.1] => (item=2.2.2) => {\"changed\": false, \"cmd\": \"/home/vagrant/.rvm/wrappers/2.2.2/gem list | if ! grep \\\"^bundler \\\" ; then /home/vagrant/.rvm/wrappers/2.2.2/gem install bundler ; fi\", \"delta\": \"0:00:00.007698\", \"end\": \"2015-06-13 10:52:37.563563\", \"item\": \"2.2.2\", \"rc\": 127, \"start\": \"2015-06-13 10:52:37.555865\", \"stdout_lines\": [], \"warnings\": []}\r\n==> default: stderr: /bin/sh: 1: /home/vagrant/.rvm/wrappers/2.2.2/gem: not found\r\n==> default: /bin/sh: 1: /home/vagrant/.rvm/wrappers/2.2.2/gem: not found\r\n```\r\n\r\n\r\nAlso including a prior error in case it's relevant (though Ruby 2.2.2 appears to have be successfully installed):\r\n```\r\nTASK: [rvm_io.rvm1-ruby | Install rubies] ************************************* \r\nchanged: [127.0.0.1] => (item={'cmd': ['~/.rvm/bin/rvm', '2.2.2', 'do', 'true'], 'end': '2015-06-13 07:57:36.806564', 'stderr': 'ruby-2.1.2 is not installed.\\nRuby ruby-2.2.2 is not installed.', 'stdout': \"To install do: 'rvm install ruby-2.1.2'\", 'item': '2.2.2', 'changed': False, 'rc': 2, 'failed': False, 'warnings': [], 'delta': '0:00:00.539307', 'invocation': {'module_name': u'command', 'module_args': u'~/.rvm/bin/rvm 2.2.2 do true'}, 'stdout_lines': [\"To install do: 'rvm install ruby-2.1.2'\"], 'failed_when_result': False, 'start': '2015-06-13 07:57:36.267257'})\r\n```"}}