Added ops template to main.
authorLuke Hoersten <luke@hoersten.org>
Sat, 03 Jul 2021 11:16:17 -0500
changeset 155 4d45841961e7
parent 154 436cd9b3ee0b
child 156 ebd8a21a0e62
Added ops template to main.
minecraft/tasks/main.yaml
--- a/minecraft/tasks/main.yaml	Sat Jul 03 11:13:02 2021 -0500
+++ b/minecraft/tasks/main.yaml	Sat Jul 03 11:16:17 2021 -0500
@@ -32,7 +32,7 @@
     mode: "0755"
   notify: restart minecraft
 
-- name: configure minecraft eula and ops
+- name: configure minecraft eula
   become: yes
   copy:
     src: "{{item}}"
@@ -41,7 +41,15 @@
     group: "{{minecraft_user}}"
   loop:
     - "eula.txt"
-    - "ops.json"
+  notify: restart minecraft
+
+- name: configure minecraft ops
+  become: yes
+  template:
+    src: "ops.json.j2"
+    dest: "{{minecraft_dir}}/ops.json"
+    owner: "{{minecraft_user}}"
+    group: "{{minecraft_user}}"
   notify: restart minecraft
 
 - name: install plugins