- name: Installing common ruby gems
  gem: name={{item}} state=latest executable=/home/deploy/.rbenv/shims/gem
  with_items: preinstall_gems

- name: Installing common ruby gems
  shell: '/home/{{ deploy_user }}/.rbenv/shims/gem install {{ item }}'
  with_items: preinstall_gems

Fix an issue with gems not installing
Fix an issue with gems not installing
