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"