check new version
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
---
|
||||
- name: Compile new Spigot version
|
||||
ansible.builtin.shell: |
|
||||
cd {{ spigot_new_version_dir }}
|
||||
java -jar BuildTools.jar --rev {{ minecraft_version }}
|
||||
become_user: "{{ minecraft_user }}"
|
||||
register: new_spigot_compilation
|
||||
failed_when: new_spigot_compilation.rc != 0
|
||||
timeout: 1800
|
||||
|
||||
- name: Set compilation success flag
|
||||
ansible.builtin.set_fact:
|
||||
spigot_compilation_successful: "{{ new_spigot_compilation.rc == 0 }}"
|
||||
|
||||
- name: Display compilation result
|
||||
ansible.builtin.debug:
|
||||
msg: "New Spigot compilation {{ 'successful' if spigot_compilation_successful else 'failed' }}"
|
Reference in New Issue
Block a user