Merge pull request #493 from elastic/there_can_be_only_one
Only use the first found java version if there are multiple installed
This commit is contained in:
commit
fb760f4b90
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Get the installed java path
|
||||
shell: "update-alternatives --display java | grep '^/' | awk '{print $1}' | grep 1.8.0"
|
||||
shell: "update-alternatives --display java | grep '^/' | awk '{print $1}' | grep 1.8.0 | head -1"
|
||||
become: yes
|
||||
register: java_full_path
|
||||
failed_when: False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue