rvm / rvm1-ansible

The official ansible RVM role to install and manage your Ruby versions.
MIT License
271 stars 136 forks source link

rvm.sh no longer installed? #135

Open fields opened 7 years ago

fields commented 7 years ago

I'm migrating from using the rvm_io.rvm1-ruby galaxy role to using rvm_io.ruby, on centos. Previously, this role installed /etc/profile.d/rvm.sh so that rvm was started at login, but it seems that for a fresh machine where I've only used the rvm_io.ruby role, this file does not exist. Was this removed, and is there an alternate mechanism that should be used?

Thanks!

saimonsharif commented 6 years ago

Hi @fields, were you able to find a solution to this? I'm running into this now where /etc/profile.d/rvm.sh is only installed after running the galaxy role again.

mehyedes commented 4 years ago

I have hit the same issue, where the file is not installed. Had to add another task to update .bash_profile for my user:

  - name: Update jenkins user startup files for rvm
    lineinfile:
      dest: /home/jenkins/.bash_profile
      line: "source $HOME/.rvm/scripts/rvm"
      regexp: "^source.*rvm$"
      state: present
      insertafter: EOF
      owner: jenkins
    tags: ruby