# HG changeset patch # User Luke Hoersten # Date 1625328977 18000 # Node ID 4d45841961e712533e9f07a36c186be4786e49be # Parent 436cd9b3ee0b5f74bd649a4fcfdd15d2f0c4c88d Added ops template to main. diff -r 436cd9b3ee0b -r 4d45841961e7 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