Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to re-login in Ubuntu 14.04 to correctly set JAVA_HOME #41

Open
niravradia opened this issue Jul 11, 2016 · 1 comment
Open

Need to re-login in Ubuntu 14.04 to correctly set JAVA_HOME #41

niravradia opened this issue Jul 11, 2016 · 1 comment

Comments

@niravradia
Copy link

niravradia commented Jul 11, 2016

After using the role for installing JDK with following parameters:

java_version: 8
java_subversion: 91
java_set_javahome: true

the script is copied to /etc/init.d directory (with execute permissions), but it seems not executed because immediately printing JAVA_HOME gives blank string. But on logging out and re-login, it gives appropriate value.

INFO: Works fine with CentOS 7.
Any help would be appreciated.

@niravradia
Copy link
Author

Note: On CentOS 7 also, when I run it with ansible_connection=local, it does not set JAVA_HOME. I have to close the terminal and start it again to successfully echo JAVA_HOME.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant