diff --git a/roles/minecraft/tasks/main.yml b/roles/minecraft/tasks/main.yml index d8e7cae..ccda925 100644 --- a/roles/minecraft/tasks/main.yml +++ b/roles/minecraft/tasks/main.yml @@ -133,6 +133,10 @@ register: stat_mcroot_world - name: Recover world, if available block: + - name: Stop server + systemd: + name: "minecraft@{{ mcname }}" + state: stopped - name: Run recover script command: chdir: "/var/minecraft/{{ mcname }}"