Actualiser roles/03-installation-minecraft/tasks/05-compile-spigot.yml
Some checks failed
Ansible Lint / ansible_lint_and_syntax_check (push) Successful in 14s
Ansible Lint / deploy (push) Failing after 6s

This commit is contained in:
2025-08-26 20:00:57 +02:00
parent bebdfc1eff
commit a2bdbde7a7

View File

@@ -0,0 +1,19 @@
---
- name: Compile Spigot server
shell: |
cd {{ minecraft_sources_dir }}
java -jar BuildTools.jar --rev {{ minecraft_version }}
become_user: "{{ minecraft_user }}"
args:
creates: "{{ minecraft_sources_dir }}/spigot-{{ minecraft_version }}.jar"
tags: ['spigot-compile']
- name: Copy compiled Spigot to server directory
copy:
src: "{{ minecraft_sources_dir }}/spigot-{{ minecraft_version }}.jar"
dest: "{{ minecraft_server_dir }}/spigot.jar"
owner: "{{ minecraft_user }}"
group: "{{ minecraft_group }}"
mode: '0644'
remote_src: yes
tags: ['spigot-compile']