minecraft/tasks/main.yaml
changeset 20 9cacee5eec83
parent 19 31de177274a1
child 27 8fddefdd948b
--- a/minecraft/tasks/main.yaml	Tue May 12 21:24:25 2020 -0500
+++ b/minecraft/tasks/main.yaml	Wed May 13 09:24:18 2020 -0500
@@ -16,11 +16,16 @@
     mode: "0755"
   notify: restart minecraft
 
-- name: configure eula
+- name: configure eula and ops
   become: yes
   copy:
-    src: "eula.txt"
-    dest: "{{minecraft_dir}}/eula.txt"
+    src: "{{item}}"
+    dest: "{{minecraft_dir}}/{{item}}"
+    owner: "{{minecraft_user}}"
+    group: "{{minecraft_user}}"
+  loop:
+    - "eula.txt"
+    - "ops.json"
 
 - name: configure minecraft
   become: yes