rvm / rvm1-ansible

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

What is the correct way to install gems using this role? #153

Closed jamesla closed 7 years ago

jamesla commented 7 years ago

I have installed this role as a system install which works properly and installs and paths ruby, rake and bundle correctly.

- { role: rvm_io.ruby,
        rvm1_rubies: ['ruby-2.4.1'],
        rvm1_install_flags: '--auto-dotfiles',
        rvm1_install_path: /usr/local/rvm,
        rvm1_user: root

However when I install a gem, the gem installs however is not added to my path. As the gems are installed into their respective ruby versions directory setting a single path is not really possible.

I was wondering what the correct way to consume system gems is with this role?