minecraft/tasks/dynmap.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 30 Aug 2020 12:36:30 -0500
changeset 135 5fcc9627e7d3
parent 125 5a298f7b44f5
permissions -rw-r--r--
Updated minecraft role to 1.16.2

---

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