minecraft/server/tasks/dynmap.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 10 Feb 2024 15:40:36 -0600
changeset 229 7e3bf48e516a
parent 162 a7a64ed07204
permissions -rw-r--r--
Dendrite tweaks.

---

- name: create minecraft dynmap plugin dir
  become: yes
  file:
    path: "{{minecraft_dir}}/dynmap"
    owner: "{{minecraft_user}}"
    group: "{{minecraft_user}}"
    mode: "0755"
    state: "directory"

- 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"