Stop server before recovery

This commit is contained in:
Salt 2020-06-25 08:57:58 -05:00
parent 9886ae046a
commit 7f1653d881

View File

@ -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 }}"