minecraft/server/tasks/dynmap.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 10 Jul 2021 13:28:05 -0500
changeset 161 edc41ae39fb8
parent 156 ebd8a21a0e62
child 162 a7a64ed07204
permissions -rw-r--r--
Upgraded minecraft to 1.17.1

---

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