Extended check for which openjdk version to use.
Needed because ubuntu 16.04 does not provide openjdk-7 packages anymore, which was the default package. Now uses openjdk-8 package if ubuntu version >= 15.10
This commit is contained in:
parent
5ad8d36453
commit
f471622348
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
java: "{{ es_java | default('openjdk-7-jre-headless') }}"
|
||||
java: "{% if es_java is defined %}{{es_java}}{%elif (ansible_distribution == 'Ubuntu' and ansible_distribution_version | version_compare('15.10', '>=')) %}openjdk-8-jre-headless{% else %}openjdk-7-jre-headless{% endif %}"
|
||||
default_file: "/etc/default/elasticsearch"
|
||||
es_home: "/usr/share/elasticsearch"
|
||||
es_home: "/usr/share/elasticsearch"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue