adoptium/infrastructure

UnixPB: Ansible request for JDK install role

Open

#2,705 opened on Aug 23, 2022

View on GitHub
 (8 comments) (0 reactions) (1 assignee)Python (104 forks)auto 404
ansiblegood first issuereliability

Repository metrics

Stars
 (98 stars)
PR merge metrics
 (PR metrics pending)

Description

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:

  • Bug in ansible playbook

Details: If there are multiple matches in /usr/lib/jvm then ansible fails to create the appropriate symbolic link e.g.

root@test-marist-ubuntu1804-s390x-3:/usr/lib/jvm# ls -ld /usr/lib/jvm/jdk-11*
drwxr-xr-x 9 root root 4096 Aug 16 07:53 /usr/lib/jvm/jdk-11.0.16.1+1
drwxr-xr-x 9 root root 4096 Jul 19 20:30 /usr/lib/jvm/jdk-11.0.16+8
drwxr-xr-x 9 root root 4096 Jul 15  2020 /usr/lib/jvm/jdk-11.0.8+10

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"}

Contributor guide