-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
UnixPB: Ansible request for JDK install role #2705
Comments
related #2624 |
hi @Haroon-Khel @smlambert i would like to take up this issue |
Hi @lumuchris256 I have assigned it to you |
@Haroon-Khel according to issue #2624 , what is the expected outcome of the issue? |
Conversation continued in slack |
At Line 117 in 95fb017 {{ path }}.* ) and removes it if present then installs the jdk completely
Another solution would be to check if a non symlinked jdk exists and then tries to symlink it, but this might get long. And it would be better to install a newer jdk anyway |
So something along the lines of
It should only remove the non linked binary if it doesnt detect a symlink. If it does detect a symlink then this task should not run (it will delete the binary that is linked which we dont want) |
Please put the name of the software product (and affected platforms if relevant) in the title of this issue
Delete as appropriate from this list:
Details:
If there are multiple matches in /usr/lib/jvm then ansible fails to create the appropriate symbolic link e.g.
Results in
fatal: [test-marist-ubuntu1804-s390x-3]: FAILED! => {"changed": false, "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /usr/lib/jvm/jdk-11.0.16.1+1\n/usr/lib/jvm/jdk-11.0.16+8\n/usr/lib/jvm/jdk-11.0.8+10", "path": "/usr/lib/jvm/jdk-11", "src": "/usr/lib/jvm/jdk-11.0.16.1+1\n/usr/lib/jvm/jdk-11.0.16+8\n/usr/lib/jvm/jdk-11.0.8+10"}
The text was updated successfully, but these errors were encountered: