# Ansible, RVM, Gem module - (RVM changes cd command to work but ansible gem module doesn't use shell to send commands) How does it work? Any complications?

**URL:** <https://forum.ansible.com/t/ansible-rvm-gem-module-rvm-changes-cd-command-to-work-but-ansible-gem-module-doesnt-use-shell-to-send-commands-how-does-it-work-any-complications/32843>\
**Category:** Ansible Developer\
**Created:** [May 4, 2020, 5:33pm UTC](https://forum.ansible.com/t/ansible-rvm-gem-module-rvm-changes-cd-command-to-work-but-ansible-gem-module-doesnt-use-shell-to-send-commands-how-does-it-work-any-complications/32843 "2020-05-04T17:33:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave2](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@Dave2](https://forum.ansible.com/u/Dave2)\
**Post date:** [May 4, 2020, 5:33pm UTC](https://forum.ansible.com/t/ansible-rvm-gem-module-rvm-changes-cd-command-to-work-but-ansible-gem-module-doesnt-use-shell-to-send-commands-how-does-it-work-any-complications/32843/1 "2020-05-04T17:33:05Z")

</div>

How Ansible gem module works with RVM?

I feel like it’s causing hidden errors behind and I’m not able to figure out why certain things don’t work right. Maybe this is the issue?

I set up env\_vars with "environment: " with gem module but I’m not sure if there is anything else to implement for RVM.

Should I pass every gem/bundler related command in "shell: " line on an ansible task instead of using gem module?
