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?

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?