---
- name: Install Ruby {{ ruby_version }}
  shell: /bin/bash -lc "rbenv install {{ ruby_version }}"

- name: Sets global ruby version
  shell: /bin/bash -lc "rbenv global {{ ruby_version }} && rbenv rehash"

- name: Install bundler
  shell: /bin/bash -lc "rbenv exec gem install bundler && rbenv rehash"


---
- name: Install Ruby {{ ruby_version }}
  shell: /bin/bash -lc "rbenv install {{ ruby_version }} -v > ./install.log"

- name: Sets global ruby version
  shell: /bin/bash -lc "rbenv global {{ ruby_version }} && rbenv rehash"

- name: Install bundler
  shell: /bin/bash -lc "rbenv exec gem install bundler && rbenv rehash"


Add writing log when installing ruby
Add writing log when installing ruby
