Verify ownership of MC world after restore
This commit is contained in:
parent
cf8d063f56
commit
04a538d274
@ -144,6 +144,14 @@
|
|||||||
- bash
|
- bash
|
||||||
- "./recover.sh"
|
- "./recover.sh"
|
||||||
notify: "restart minecraft {{ mcname }}"
|
notify: "restart minecraft {{ mcname }}"
|
||||||
|
become: yes
|
||||||
|
become_user: root
|
||||||
|
- name: Change permissions of world
|
||||||
|
file:
|
||||||
|
path: "/var/minecraft/{{ mcname }}/world"
|
||||||
|
state: directory
|
||||||
|
owner: minecraft
|
||||||
|
group: mc-admin
|
||||||
when: not stat_mcroot_world.stat.exists
|
when: not stat_mcroot_world.stat.exists
|
||||||
- name: Configure server
|
- name: Configure server
|
||||||
block:
|
block:
|
||||||
|
Loading…
Reference in New Issue
Block a user