diff --git a/tasks/elasticsearch.yml b/tasks/elasticsearch.yml index 71ad9e1..8fe5895 100644 --- a/tasks/elasticsearch.yml +++ b/tasks/elasticsearch.yml @@ -9,10 +9,6 @@ when: (es_user_id is defined) and (es_group_id is defined) include: elasticsearch-optional-user.yml -#- name: Include specific Elasticsearch -# include: "elasticsearch-{{ansible_os_family}}.yml" - -#Install OS specific elasticsearch - this can be abbreviated in version 2.0.0 - name: Include specific Elasticsearch include: elasticsearch-Debian.yml when: ansible_os_family == 'Debian' diff --git a/vars/Debian.yml b/vars/Debian.yml index cfa73ae..071736e 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -1,4 +1,4 @@ --- -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 %}" +java: "{% if es_java is defined %}{{es_java}}{% else %}openjdk-8-jre-headless{% endif %}" default_file: "/etc/default/elasticsearch" es_home: "/usr/share/elasticsearch"