minecraft/server/tasks/main.yaml
changeset 178 0f99f298361d
parent 177 11f52d70bca4
child 239 c3e3169399a8
--- a/minecraft/server/tasks/main.yaml	Sun Dec 12 18:48:50 2021 -0600
+++ b/minecraft/server/tasks/main.yaml	Sun Dec 12 20:07:46 2021 -0600
@@ -4,16 +4,9 @@
   become: yes
   user: name="{{minecraft_user}}" home="{{minecraft_parent_dir}}/minecraft" shell="/bin/false" system="yes"
 
-- name: install adoptium java
+- name: install java
   become: yes
-  unarchive:
-    remote_src: yes
-    src: "{{minecraft_java_url}}"
-    dest: "/opt/"
-    creates: "/opt/jdk-{{minecraft_java_version}}+{{minecraft_java_build}}/"
-    owner: "root"
-    group: "root"
-  notify: restart minecraft
+  apt: name="openjdk-17-jre-headless"
 
 - name: create minecraft dir
   become: yes