Error in setting Java_HOME and Java_path to make java available for the system

Hi,

I want to know , how to set java home and java path through ansible playbook or else is there any other way to make java available to the system.

I have tried using lineinfile and copy the src file and template structure.

please assist me in solving this issue.

Thanks and Regards
Nandha kumar
Bangalore,IN

Hi Nandha,

Where you able to solve this issue?

Should you need to control environment variables when running tasks see the information here:

http://docs.ansible.com/playbooks_environment.html

If I’m misunderstanding the question and this is about user setup, it sounds like you may just wish to template out the .bashrc.

If that doesn’t quite follow, we’re probably going to need more information showing the playbok line that is causing problems and more information about your use case.

Thanks!