diff --git a/roles/minecraft/tasks/main.yml b/roles/minecraft/tasks/main.yml index ccda925..3ea5900 100644 --- a/roles/minecraft/tasks/main.yml +++ b/roles/minecraft/tasks/main.yml @@ -144,6 +144,14 @@ - bash - "./recover.sh" 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 - name: Configure server block: