Source Profile (.bashrc or profile.d)

I’m installing ruby from source and then using template to export path.
but am unable to run:
shell: rbenv install jruby-9.0.5.0
getting error rbenv command not found.
the solution I’m using to run command is:
shell: . /etc/profile.d/rbenv.sh && rbenv install jruby-9.0.5.0

It’s working but in this way i have to source profile in every command.
Is there any way to add this in ansible.config file or something so that i need not to source profile in every command ?