minecraft/server/tasks/dynmap.yaml
changeset 156 ebd8a21a0e62
parent 125 5a298f7b44f5
child 162 a7a64ed07204
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/minecraft/server/tasks/dynmap.yaml	Sat Jul 03 13:23:46 2021 -0500
@@ -0,0 +1,27 @@
+---
+
+- name: create minecraft plugins dir
+  become: yes
+  file:
+    path: "{{minecraft_dir}}/{{item}}"
+    owner: "{{minecraft_user}}"
+    group: "{{minecraft_user}}"
+    mode: "0755"
+    state: "directory"
+  loop:
+    - "plugins"
+    - "plugins/dynmap"
+
+- name: download dynmap
+  become: yes
+  get_url:
+    url: "{{minecraft_dynmap_url}}"
+    dest: "{{minecraft_dir}}/plugins/dynmap.jar"
+    mode: "0755"
+  notify: restart minecraft
+
+- name: configure dynmap
+  become: yes
+  template:
+    src: "configuration.txt.j2"
+    dest: "{{minecraft_dir}}/plugins/dynmap/configuration.txt"