2021-06-17 02:49:01 +00:00
|
|
|
- name: Download Minecraft
|
2023-05-04 03:27:03 +00:00
|
|
|
ansible.builtin.get_url:
|
2021-06-17 02:49:01 +00:00
|
|
|
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
|