Added ops to minecraft role.
authorLuke Hoersten <luke@hoersten.org>
Wed, 13 May 2020 09:24:18 -0500
changeset 20 9cacee5eec83
parent 19 31de177274a1
child 21 fecc27fe5aef
Added ops to minecraft role.
minecraft/files/ops.json
minecraft/tasks/main.yaml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/minecraft/files/ops.json	Wed May 13 09:24:18 2020 -0500
@@ -0,0 +1,8 @@
+[
+  {
+    "uuid": "98827ef9-601c-49fd-b575-abc8de019854",
+    "name": "Lukemute",
+    "level": 4,
+    "bypassesPlayerLimit": true
+  }
+]
--- 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