Stop server before recovery
This commit is contained in:
parent
9886ae046a
commit
7f1653d881
@ -133,6 +133,10 @@
|
|||||||
register: stat_mcroot_world
|
register: stat_mcroot_world
|
||||||
- name: Recover world, if available
|
- name: Recover world, if available
|
||||||
block:
|
block:
|
||||||
|
- name: Stop server
|
||||||
|
systemd:
|
||||||
|
name: "minecraft@{{ mcname }}"
|
||||||
|
state: stopped
|
||||||
- name: Run recover script
|
- name: Run recover script
|
||||||
command:
|
command:
|
||||||
chdir: "/var/minecraft/{{ mcname }}"
|
chdir: "/var/minecraft/{{ mcname }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user