From 9b80b89f27a8f7135003f0cd530d6d34cea6241f Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 28 Nov 2019 13:11:53 +0100 Subject: [PATCH] server/minecraft: Configured rcon port automatically using server port --- roles/server/minecraft/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/server/minecraft/defaults/main.yml b/roles/server/minecraft/defaults/main.yml index b586f02..e3c7f1e 100644 --- a/roles/server/minecraft/defaults/main.yml +++ b/roles/server/minecraft/defaults/main.yml @@ -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"