railsbox
railsbox copied to clipboard
'ansible_ssh_user' is not set?
I'm getting an error with RVM.
==> rails-dvlasov: TASK [ruby : Install rvm] ****************************************************** ==> rails-dvlasov: fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["/tmp/rvm-installer.sh", "stable", "--path", "/home//.rvm", "--auto-dotfiles", "--user-install"], "delta": "0:00:00.021989", "end": "2016-04-12 18:38:47.655138", "failed": true, "rc": 1, "start": "2016-04-12 18:38:47.633149", "stderr": "mkdir: cannot create directory ‘/home//.rvm’: Permission denied", "stdout": "Turning on auto dotfiles mode.\nTurning on user install mode.", "stdout_lines": ["Turning on auto dotfiles mode.", "Turning on user install mode."], "warnings": []} ==> rails-dvlasov: to retry, use: --limit @/ansible/site.retry ==> rails-dvlasov: ==> rails-dvlasov: PLAY RECAP ********************************************************************* ==> rails-dvlasov: 127.0.0.1 : ok=28 changed=4 unreachable=0 failed=1 The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.
It looks like a bug with this line:
rvm1_install_path: '/home/{{ ansible_ssh_user }}/.rvm'