From 4b4ed65c08542c2f8d4ee84cd605a5e4258b89e2 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Sun, 26 Oct 2014 15:28:25 +0000 Subject: [PATCH 01/20] Activated RedHat Installation --- .gitignore | 3 +++ tasks/main.yml | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a72cee --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Eclipse generated files and folders +.project +.settings diff --git a/tasks/main.yml b/tasks/main.yml index d621013..7fc70e3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,6 @@ --- - include: Debian.yml when: ansible_os_family == 'Debian' + +- include: RedHat.yml + when: ansible_os_family == 'RedHat' \ No newline at end of file From 34d5a23d0b46420639c8eaf21c1793cdbe40e221 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Sun, 17 Nov 2019 21:26:22 +0000 Subject: [PATCH 02/20] Update variable formatting Signed-off-by: Matthew Green --- tasks/Debian.yml | 4 ++-- tasks/RedHat.yml | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tasks/Debian.yml b/tasks/Debian.yml index 241c9b6..a4bb2b3 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -21,9 +21,9 @@ - name: Install Java packages apt: pkg={{ item }} state=latest - with_items: java_packages + with_items: "{{java_packages}}" - name: Remove unwanted Java packages apt: pkg={{ item }} state=absent - with_items: java_packages_to_remove + with_items: "{{java_packages_to_remove|default([])}}" when: java_cleanup diff --git a/tasks/RedHat.yml b/tasks/RedHat.yml index 64cda39..785eeeb 100644 --- a/tasks/RedHat.yml +++ b/tasks/RedHat.yml @@ -2,8 +2,5 @@ - name: Install Java packages yum: name={{ item }} state=latest - with_items: java_packages + with_items: "{{java_packages}}" when: ansible_os_family == 'RedHat' - - - From abd9af29c0b617ffbed8691e5e162d03da37c4bb Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Sun, 17 Nov 2019 21:46:49 +0000 Subject: [PATCH 03/20] Correct include_vars syntax Signed-off-by: Matthew Green --- tasks/Debian.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/Debian.yml b/tasks/Debian.yml index 5189aeb..c913aca 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -1,6 +1,7 @@ --- -- include_vars: Ubuntu.yml +- include_vars: + file: Ubuntu.yml - name: Install python-apt apt: @@ -33,6 +34,6 @@ - name: Remove unwanted Java packages apt: pkg: "{{ item }}" - state: absent + state:absent with_items: "{{java_packages_to_remove|default([])}}" when: java_cleanup From 9b9427fc4e7ce5cf385cec810f3b6b6d99321352 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Sun, 17 Nov 2019 21:49:50 +0000 Subject: [PATCH 04/20] Correct syntax Signed-off-by: Matthew Green --- tasks/Debian.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/Debian.yml b/tasks/Debian.yml index c913aca..6e45b71 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -34,6 +34,6 @@ - name: Remove unwanted Java packages apt: pkg: "{{ item }}" - state:absent + state: absent with_items: "{{java_packages_to_remove|default([])}}" when: java_cleanup From 363160477b0b3153c1fc26cad27442d7bc596564 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Sun, 17 Nov 2019 22:11:11 +0000 Subject: [PATCH 05/20] Correct include syntax Signed-off-by: Matthew Green --- tasks/Debian.yml | 7 ++++--- tasks/main.yml | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tasks/Debian.yml b/tasks/Debian.yml index 6e45b71..d09c37b 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -1,16 +1,17 @@ --- -- include_vars: +- name: OS variables + include_vars: file: Ubuntu.yml - name: Install python-apt apt: pkg: python-apt -- include: webupd8_for_debian.yml +- import_tasks: webupd8_for_debian.yml when: "ansible_distribution != 'Ubuntu'" -- include: webupd8_for_ubuntu.yml +- import_tasks: webupd8_for_ubuntu.yml when: ansible_distribution == 'Ubuntu' - name: Accept Oracle License diff --git a/tasks/main.yml b/tasks/main.yml index 7fc70e3..3a04b00 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,6 @@ --- -- include: Debian.yml +- import_tasks: Debian.yml when: ansible_os_family == 'Debian' -- include: RedHat.yml +- import_tasks: RedHat.yml when: ansible_os_family == 'RedHat' \ No newline at end of file From 5fe01e4dc4c75c5f13bcbd485a3c544723516613 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Sun, 17 Nov 2019 22:19:18 +0000 Subject: [PATCH 06/20] Try to fix build Signed-off-by: Matthew Green --- .travis.yml | 6 +----- tasks/webupd8_for_debian.yml | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 96709cb..d02c0d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,24 +11,20 @@ before_install: install: # Install Ansible. - - pip install ansible==1.6.3 + - pip install ansible script: - "cd tests" - # Check the role/playbook's syntax. - "ansible-playbook -i inventory $SITE --syntax-check" - # Run the role/playbook with ansible-playbook. - "ansible-playbook -i inventory $SITE --connection=local --sudo" - # Run the role/playbook again, checking to make sure it's idempotent. - > ansible-playbook -i inventory $SITE --connection=local --sudo | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) - # Make sure Java is installed. - > which java diff --git a/tasks/webupd8_for_debian.yml b/tasks/webupd8_for_debian.yml index 2eca8c1..acd8ddd 100644 --- a/tasks/webupd8_for_debian.yml +++ b/tasks/webupd8_for_debian.yml @@ -1,16 +1,25 @@ --- - name: Install WebUpd8 apt key - apt_key: id=EEA14886 keyserver='keyserver.ubuntu.com' state=present + apt_key: + id: EEA14886 + keyserver: 'keyserver.ubuntu.com' + state: present register: webupd8key until: webupd8key|success retries: 5 delay: 10 - name: Install WebUpd8 Team Java PPA (for Oracle Java) - apt_repository: repo='deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' state=present mode=0644 + apt_repository: + repo: 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' + state: present + mode: "0644" when: java_needs_oracle - name: Remove WebUpd8 Team Java PPA (for Oracle Java) - apt_repository: repo='deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' state=present mode=0644 + apt_repository: + repo: 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' + state: present + mode: "0644" when: java_cleanup and not java_needs_oracle From 400a356234db1d94880e0ccf6d144d50c00f321e Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Sun, 17 Nov 2019 22:23:00 +0000 Subject: [PATCH 07/20] Try to fix build Signed-off-by: Matthew Green --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d02c0d5..a04a61a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,10 +18,10 @@ script: # Check the role/playbook's syntax. - "ansible-playbook -i inventory $SITE --syntax-check" # Run the role/playbook with ansible-playbook. - - "ansible-playbook -i inventory $SITE --connection=local --sudo" + - "ansible-playbook -i inventory $SITE --connection=local --b" # Run the role/playbook again, checking to make sure it's idempotent. - > - ansible-playbook -i inventory $SITE --connection=local --sudo + ansible-playbook -i inventory $SITE --connection=local --b | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) From 56b24fe647b0f277abe7474ad5f4e52d88a5e9c7 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 06:55:40 +0000 Subject: [PATCH 08/20] Correct ansible-playbook command line syntax Signed-off-by: Matthew Green --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a04a61a..f0e0c28 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,10 +18,10 @@ script: # Check the role/playbook's syntax. - "ansible-playbook -i inventory $SITE --syntax-check" # Run the role/playbook with ansible-playbook. - - "ansible-playbook -i inventory $SITE --connection=local --b" + - "ansible-playbook -i inventory $SITE --connection=local --become-method sudo" # Run the role/playbook again, checking to make sure it's idempotent. - > - ansible-playbook -i inventory $SITE --connection=local --b + ansible-playbook -i inventory $SITE --connection=local --become-method sudo | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) From fc1d941581f6657dd5741c24a019bc5bade0980e Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 07:11:28 +0000 Subject: [PATCH 09/20] Change search from filter to test Signed-off-by: Matthew Green --- vars/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/main.yml b/vars/main.yml index 87515b8..5bdf2c8 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,2 +1,2 @@ --- -java_needs_oracle: "{{ java_packages | join | search('oracle') }}" +java_needs_oracle: "{{ java_packages | join is search('oracle') }}" From f92983248d378dd89d699d0c9eb6b3e1cd2d46ad Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 07:15:58 +0000 Subject: [PATCH 10/20] Change success from filter to test Signed-off-by: Matthew Green --- tasks/webupd8.yml | 1 - tasks/webupd8_for_ubuntu.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/webupd8.yml b/tasks/webupd8.yml index cd21505..ed97d53 100644 --- a/tasks/webupd8.yml +++ b/tasks/webupd8.yml @@ -1,2 +1 @@ --- - diff --git a/tasks/webupd8_for_ubuntu.yml b/tasks/webupd8_for_ubuntu.yml index 703d9d7..8142d3c 100644 --- a/tasks/webupd8_for_ubuntu.yml +++ b/tasks/webupd8_for_ubuntu.yml @@ -3,7 +3,7 @@ apt_repository: repo='ppa:webupd8team/java' state=present mode=0644 when: java_needs_oracle register: webupd8ppa - until: webupd8ppa|success + until: webupd8ppa is success retries: 5 delay: 10 From 02d83a781c7590825a5cde940829bcedf3d657f9 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 07:28:53 +0000 Subject: [PATCH 11/20] Add more to names to help debugging Signed-off-by: Matthew Green --- tasks/webupd8_for_debian.yml | 6 +++--- tasks/webupd8_for_ubuntu.yml | 14 ++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/tasks/webupd8_for_debian.yml b/tasks/webupd8_for_debian.yml index acd8ddd..63ad480 100644 --- a/tasks/webupd8_for_debian.yml +++ b/tasks/webupd8_for_debian.yml @@ -1,6 +1,6 @@ --- -- name: Install WebUpd8 apt key +- name: Debian | Install WebUpd8 apt key apt_key: id: EEA14886 keyserver: 'keyserver.ubuntu.com' @@ -10,14 +10,14 @@ retries: 5 delay: 10 -- name: Install WebUpd8 Team Java PPA (for Oracle Java) +- name: Debian | Install WebUpd8 Team Java PPA (for Oracle Java) apt_repository: repo: 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' state: present mode: "0644" when: java_needs_oracle -- name: Remove WebUpd8 Team Java PPA (for Oracle Java) +- name: Debian | Remove WebUpd8 Team Java PPA (for Oracle Java) apt_repository: repo: 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' state: present diff --git a/tasks/webupd8_for_ubuntu.yml b/tasks/webupd8_for_ubuntu.yml index 8142d3c..287a341 100644 --- a/tasks/webupd8_for_ubuntu.yml +++ b/tasks/webupd8_for_ubuntu.yml @@ -1,12 +1,18 @@ --- -- name: Install WebUpd8 Team Java PPA (for Oracle Java) - apt_repository: repo='ppa:webupd8team/java' state=present mode=0644 +- name: Ubuntu | Install WebUpd8 Team Java PPA (for Oracle Java) + apt_repository: + repo: 'ppa:webupd8team/java' + state: present + mode: "0644" when: java_needs_oracle register: webupd8ppa until: webupd8ppa is success retries: 5 delay: 10 -- name: Remove WebUpd8 Team Java PPA (for Oracle Java) - apt_repository: repo='ppa:webupd8team/java' state=present mode=0644 +- name: Ubuntu | Remove WebUpd8 Team Java PPA (for Oracle Java) + apt_repository: + repo: 'ppa:webupd8team/java' + state: present + mode: "0644" when: java_cleanup and not java_needs_oracle From 79501e35d8a78b6247b2b7a87e0c65416febc549 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 20:15:37 +0000 Subject: [PATCH 12/20] Use become user instead of remote user Signed-off-by: Matthew Green --- tests/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.yml b/tests/test.yml index b2e8ddf..c919fc2 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,5 +1,5 @@ --- - hosts: test - remote_user: root + become_user: root roles: - ansible-java-role From 755fc961f67f736d56f4ac89664d723926afa100 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 20:27:15 +0000 Subject: [PATCH 13/20] Change user to resolve the 'no writable keyring found' during the build Signed-off-by: Matthew Green --- .travis.yml | 4 ++-- tasks/webupd8_for_ubuntu.yml | 3 +++ tests/test.yml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f0e0c28..62bef39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,10 +18,10 @@ script: # Check the role/playbook's syntax. - "ansible-playbook -i inventory $SITE --syntax-check" # Run the role/playbook with ansible-playbook. - - "ansible-playbook -i inventory $SITE --connection=local --become-method sudo" + - "ansible-playbook -i inventory $SITE --connection=local" # Run the role/playbook again, checking to make sure it's idempotent. - > - ansible-playbook -i inventory $SITE --connection=local --become-method sudo + ansible-playbook -i inventory $SITE --connection=local | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) diff --git a/tasks/webupd8_for_ubuntu.yml b/tasks/webupd8_for_ubuntu.yml index 287a341..8496954 100644 --- a/tasks/webupd8_for_ubuntu.yml +++ b/tasks/webupd8_for_ubuntu.yml @@ -1,4 +1,7 @@ --- +- debug: + msg: "{{ ansible_user_id }}" + - name: Ubuntu | Install WebUpd8 Team Java PPA (for Oracle Java) apt_repository: repo: 'ppa:webupd8team/java' diff --git a/tests/test.yml b/tests/test.yml index c919fc2..e320335 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,5 +1,5 @@ --- - hosts: test - become_user: root + become: true roles: - ansible-java-role From ffbf34d3624943a830931666d4c97a5e8df1f0ac Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 20:32:27 +0000 Subject: [PATCH 14/20] Correct package installation as loop not needed any more Signed-off-by: Matthew Green --- tasks/Debian.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tasks/Debian.yml b/tasks/Debian.yml index d09c37b..e8fcc2e 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -1,10 +1,10 @@ --- -- name: OS variables +- name: Debian | OS variables include_vars: file: Ubuntu.yml -- name: Install python-apt +- name: Debian | Install python-apt apt: pkg: python-apt @@ -14,7 +14,7 @@ - import_tasks: webupd8_for_ubuntu.yml when: ansible_distribution == 'Ubuntu' -- name: Accept Oracle License +- name: Debian | Accept Oracle License debconf: name: "{{ item }}" question: 'shared/accepted-oracle-license-v1-1' @@ -26,15 +26,13 @@ - oracle-java8-installer when: java_needs_oracle -- name: Install Java packages +- name: Debian | Install Java packages apt: - pkg: "{{ item }}" + pkg: "{{ java_packages }}" state: latest - with_items: "{{java_packages}}" -- name: Remove unwanted Java packages +- name: Debian | Remove unwanted Java packages apt: - pkg: "{{ item }}" + pkg: "{{ java_packages_to_remove|default([]) }}" state: absent - with_items: "{{java_packages_to_remove|default([])}}" when: java_cleanup From cf66c3e11c225cb7e900b74b166d8563b8b0d133 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 20:33:37 +0000 Subject: [PATCH 15/20] Clean up debug statements and empty file Signed-off-by: Matthew Green --- tasks/webupd8.yml | 1 - tasks/webupd8_for_ubuntu.yml | 3 --- 2 files changed, 4 deletions(-) delete mode 100644 tasks/webupd8.yml diff --git a/tasks/webupd8.yml b/tasks/webupd8.yml deleted file mode 100644 index ed97d53..0000000 --- a/tasks/webupd8.yml +++ /dev/null @@ -1 +0,0 @@ ---- diff --git a/tasks/webupd8_for_ubuntu.yml b/tasks/webupd8_for_ubuntu.yml index 8496954..287a341 100644 --- a/tasks/webupd8_for_ubuntu.yml +++ b/tasks/webupd8_for_ubuntu.yml @@ -1,7 +1,4 @@ --- -- debug: - msg: "{{ ansible_user_id }}" - - name: Ubuntu | Install WebUpd8 Team Java PPA (for Oracle Java) apt_repository: repo: 'ppa:webupd8team/java' From 0d61400df7dfe60ae81eb3311fe62561a3d3442b Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 20:37:40 +0000 Subject: [PATCH 16/20] Remove 'oracle-java8-set-default' installation during test Signed-off-by: Matthew Green --- tests/group_vars/test | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/group_vars/test b/tests/group_vars/test index bb328d6..682eef8 100644 --- a/tests/group_vars/test +++ b/tests/group_vars/test @@ -1,5 +1,4 @@ --- java_packages: - - oracle-java8-set-default - oracle-java8-installer - openjdk-6-jdk From 034de843dfbd77c9d9d9a63b00cb426220bd6988 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 20:43:07 +0000 Subject: [PATCH 17/20] Fix issues during installation of packages Signed-off-by: Matthew Green --- tasks/Debian.yml | 1 + tests/group_vars/test | 1 + 2 files changed, 2 insertions(+) diff --git a/tasks/Debian.yml b/tasks/Debian.yml index e8fcc2e..58f5c94 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -29,6 +29,7 @@ - name: Debian | Install Java packages apt: pkg: "{{ java_packages }}" + update_cache: true state: latest - name: Debian | Remove unwanted Java packages diff --git a/tests/group_vars/test b/tests/group_vars/test index 682eef8..bb328d6 100644 --- a/tests/group_vars/test +++ b/tests/group_vars/test @@ -1,4 +1,5 @@ --- java_packages: + - oracle-java8-set-default - oracle-java8-installer - openjdk-6-jdk From 6bee11804766e5447ea9e70c0e6f9d3249c6d4be Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 20:49:24 +0000 Subject: [PATCH 18/20] WIP: trying to fix travis build Signed-off-by: Matthew Green --- tests/group_vars/test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/group_vars/test b/tests/group_vars/test index bb328d6..bb89a09 100644 --- a/tests/group_vars/test +++ b/tests/group_vars/test @@ -1,5 +1,5 @@ --- java_packages: - - oracle-java8-set-default + # - oracle-java8-set-default - oracle-java8-installer - openjdk-6-jdk From 3d29c3c31f76d943e4baee62e8f9c885b8edfd9c Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 20:54:56 +0000 Subject: [PATCH 19/20] WIP: trying to fix travis build Signed-off-by: Matthew Green --- tasks/Debian.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/Debian.yml b/tasks/Debian.yml index 58f5c94..7f58d8b 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -14,6 +14,10 @@ - import_tasks: webupd8_for_ubuntu.yml when: ansible_distribution == 'Ubuntu' +- name: Debian | Update repository + apt: + update_cache: true + - name: Debian | Accept Oracle License debconf: name: "{{ item }}" @@ -29,7 +33,6 @@ - name: Debian | Install Java packages apt: pkg: "{{ java_packages }}" - update_cache: true state: latest - name: Debian | Remove unwanted Java packages From 8c9728a87951ca6ee78878cb89474cd1e01771dc Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Mon, 18 Nov 2019 21:01:49 +0000 Subject: [PATCH 20/20] WIP: trying to fix travis build Signed-off-by: Matthew Green --- tests/group_vars/test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/group_vars/test b/tests/group_vars/test index bb89a09..48b38de 100644 --- a/tests/group_vars/test +++ b/tests/group_vars/test @@ -1,5 +1,5 @@ --- java_packages: # - oracle-java8-set-default - - oracle-java8-installer - - openjdk-6-jdk + # - oracle-java8-installer + - openjdk-11-jdk