server/minecraft: Configured rcon port automatically using server port

dehydrated
Felix Stupp 5 years ago
parent 8f35931033
commit 9b80b89f27
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -16,7 +16,7 @@ apparmor_profile: "{{ global_apparmor_profiles_directory }}/webservers_{{ domain
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_port: "25565"
minecraft_rcon_port: "25575"
minecraft_rcon_port: "{{ minecraft_port + 10 }}"
minecraft_rcon_password: "{{ lookup('password', 'credentials/' + inventory_hostname + '/' + domain + '/rcon length=80') }}"
java_version: 11
minecraft_start_ram: "1G"

Loading…
Cancel
Save