diff --git a/roles/minecraft/defaults/main.yaml b/roles/minecraft/defaults/main.yaml index 4276adf..8210f1e 100644 --- a/roles/minecraft/defaults/main.yaml +++ b/roles/minecraft/defaults/main.yaml @@ -11,7 +11,8 @@ minecraft_port: 25565 minecraft_user: minecraft minecraft_group: minecraft -minecraft_jar_url: https://launcher.mojang.com/v1/objects/3dc3d84a581f14691199cf6831b71ed1296a9fdf/server.jar +minecraft_jar_url: https://launcher.mojang.com/v1/objects/e9f105b3c5c7e85c7b445249a93362a22f62442d/server.jar +minecraft_jar_checksum: sha256:e0fe1749263b5ec211b358b598b46e787645bffa8411414f0c812a92bdc70c84 minecraft_opt_path: /opt/minecraft minecraft_var_path: "{{ minecraft_opt_path }}/var" diff --git a/roles/minecraft/tasks/main.yaml b/roles/minecraft/tasks/main.yaml index 11ad110..544a4f6 100644 --- a/roles/minecraft/tasks/main.yaml +++ b/roles/minecraft/tasks/main.yaml @@ -52,6 +52,8 @@ owner: "{{ minecraft_user }}" group: "{{ minecraft_group }}" mode: "0644" + checksum: "{{ minecraft_jar_checksum }}" + notify: restart minecraft - name: agree to the eula copy: