Source Profile (.bashrc or profile.d)

22 views
Skip to first unread message

Aakash Singhal

unread,
Aug 12, 2016, 10:25:37 AM8/12/16
to Ansible Project
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 ?
Reply all
Reply to author
Forward
0 new messages