# Source Profile (.bashrc or profile.d)

**URL:** <https://forum.ansible.com/t/source-profile-bashrc-or-profile-d/22278>\
**Category:** Ansible Project\
**Created:** [August 12, 2016, 5:26am UTC](https://forum.ansible.com/t/source-profile-bashrc-or-profile-d/22278 "2016-08-12T05:26:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aakash\_Singhal](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@Aakash\_Singhal](https://forum.ansible.com/u/Aakash_Singhal)\
**Post date:** [August 12, 2016, 5:26am UTC](https://forum.ansible.com/t/source-profile-bashrc-or-profile-d/22278/1 "2016-08-12T05:26:36Z")

</div>

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 ?
