Trying to get some roles set up for minecraft server updates

This commit is contained in:
2024-04-07 20:20:12 -04:00
parent 09b296c452
commit 9ede90f55a
16 changed files with 284 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
---
- name: Get Spigot resource descriptor
ansible.builtin.uri:
method: GET
url: "https://api.spiget.org/v2/search/resources/{{ update_spigot_plugin_resource_name }}"
register: resource_descriptor_response
- name: Display Spigot resource descriptor
ansible.builtin.debug:
var: resource_descriptor_response
- name: Download file to /tmp
ansible.builtin.get_url:
url: "https://spigotmc.org/{{ resource_descriptor_response.json[0].file.url }}"
dest: "/tmp/{{ update_spigot_plugin_resource_name }}.jar"
force_basic_auth: true