Implement support for new naming scheme
This commit is contained in:
parent
db8eb6ae03
commit
847a83b209
@ -105,11 +105,22 @@
|
|||||||
- "--installServer"
|
- "--installServer"
|
||||||
args:
|
args:
|
||||||
creates: "/var/minecraft/{{ mcname }}/forge-{{ mcforge }}-universal.jar"
|
creates: "/var/minecraft/{{ mcname }}/forge-{{ mcforge }}-universal.jar"
|
||||||
- name: Link server jar
|
- name: Find classic jar name
|
||||||
|
stat:
|
||||||
|
path: "/var/minecraft/{{ mcname }}/forge-{{ mcforge }}-universal.jar"
|
||||||
|
register: stat_mcroot_newjar
|
||||||
|
- name: Link old-style server jar
|
||||||
file:
|
file:
|
||||||
path: "/var/minecraft/{{ mcname }}/server.jar"
|
path: "/var/minecraft/{{ mcname }}/server.jar"
|
||||||
src: "/var/minecraft/{{ mcname }}/forge-{{ mcforge }}-universal.jar"
|
src: "/var/minecraft/{{ mcname }}/forge-{{ mcforge }}-universal.jar"
|
||||||
state: link
|
state: link
|
||||||
|
when: stat_mcroot_newjar.stat.exists
|
||||||
|
- name: Link new-style server jar
|
||||||
|
file:
|
||||||
|
path: "/var/minecraft/{{ mcname }}/server.jar"
|
||||||
|
src: "/var/minecraft/{{ mcname }}/forge-{{ mcforge }}.jar"
|
||||||
|
state: link
|
||||||
|
when: not stat_mcroot_newjar.stat.exists
|
||||||
when: not stat_mcroot_forgejar.stat.exists
|
when: not stat_mcroot_forgejar.stat.exists
|
||||||
- name: Configure server
|
- name: Configure server
|
||||||
block:
|
block:
|
||||||
|
Loading…
Reference in New Issue
Block a user