From 9e6b21c278c50431abfcc1e390426a0447eddbf1 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Mon, 27 Jul 2020 19:44:18 -0500 Subject: Added dynmap to minecraft. --- minecraft/tasks/dynmap.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 minecraft/tasks/dynmap.yaml (limited to 'minecraft/tasks/dynmap.yaml') diff --git a/minecraft/tasks/dynmap.yaml b/minecraft/tasks/dynmap.yaml new file mode 100644 index 0000000..07281e3 --- /dev/null +++ b/minecraft/tasks/dynmap.yaml @@ -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" -- cgit v1.2.3