server/minecraft: Allow configure of query port

dehydrated
Felix Stupp 5 years ago
parent adbfd8dff0
commit 7fad2a89be
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -16,6 +16,7 @@ apparmor_profile: "{{ global_apparmor_profiles_directory }}/{{ launch_script | r
minecraft_source_link_generator: "curl --silent https://mcversions.net | grep minecraft_server-{{ minecraft_version }}.jar | grep --only-matching --perl-regexp '(?<=\")https://launcher.mojang.com/[^\"]+(?=\")'" minecraft_source_link_generator: "curl --silent https://mcversions.net | grep minecraft_server-{{ minecraft_version }}.jar | grep --only-matching --perl-regexp '(?<=\")https://launcher.mojang.com/[^\"]+(?=\")'"
minecraft_source_link: "{{ lookup('pipe', minecraft_source_link_generator) }}" # direct link to server jar minecraft_source_link: "{{ lookup('pipe', minecraft_source_link_generator) }}" # direct link to server jar
minecraft_port: "25565" minecraft_port: "25565"
minecraft_query_port: "{{ minecraft_port }}"
minecraft_rcon_port: "{{ minecraft_port + 10 }}" minecraft_rcon_port: "{{ minecraft_port + 10 }}"
minecraft_rcon_password: "{{ lookup('password', 'credentials/' + inventory_hostname + '/' + domain + '/rcon length=80') }}" minecraft_rcon_password: "{{ lookup('password', 'credentials/' + inventory_hostname + '/' + domain + '/rcon length=80') }}"
java_version: 11 java_version: 11

@ -19,7 +19,7 @@ level-name=world
rcon.password={{ minecraft_rcon_password }} rcon.password={{ minecraft_rcon_password }}
player-idle-timeout=0 player-idle-timeout=0
motd={{ minecraft_motd }} motd={{ minecraft_motd }}
query.port={{ minecraft_port }} query.port={{ minecraft_query_port }}
force-gamemode=false force-gamemode=false
hardcore=false hardcore=false
white-list=true white-list=true

Loading…
Cancel
Save