check new version
This commit is contained in:
22
roles/05-update/tasks/04-download-new-version.yml
Normal file
22
roles/05-update/tasks/04-download-new-version.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
- name: Create update directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ spigot_update_dir }}"
|
||||
state: directory
|
||||
owner: "{{ minecraft_user }}"
|
||||
group: "{{ minecraft_group }}"
|
||||
mode: '0755'
|
||||
|
||||
- name: Download latest BuildTools
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ minecraft_build_tools_url }}"
|
||||
dest: "{{ spigot_update_dir }}/BuildTools.jar"
|
||||
owner: "{{ minecraft_user }}"
|
||||
group: "{{ minecraft_group }}"
|
||||
mode: '0644'
|
||||
force: yes
|
||||
|
||||
- name: Clean update directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ spigot_update_dir }}/work"
|
||||
state: absent
|
Reference in New Issue
Block a user