homelab/roles/minecraft/tasks/vanilla.yml

11 lines
330 B
YAML
Raw Normal View History

- name: Download Minecraft
2023-05-04 03:42:55 +00:00
ansible.builtin.get_url:
url: "{{ minecraft_url }}"
dest: "{{ minecraft_home }}/{{ item.name }}/minecraft_server.jar"
checksum: "sha1:{{ item.sha1 }}"
owner: "{{ minecraft_user }}"
group: "{{ minecraft_user }}"
mode: 0700
loop: "{{ minecraft }}"
when: item.sha1 is defined