|
|
|
---
|
|
|
|
|
|
|
|
# domain: minecraft.example
|
|
|
|
system_user: "{{ domain | domain_to_username }}"
|
|
|
|
service_name: "{{ domain }}.service"
|
|
|
|
|
|
|
|
user_directory: "{{ global_webservers_directory }}/{{ domain }}"
|
|
|
|
installation_directory: "{{ user_directory }}/bin"
|
|
|
|
mcrcon_directory: "{{ user_directory }}/mcrcon"
|
|
|
|
data_directory: "{{ user_directory }}/data"
|
|
|
|
remote_control_script: "{{ user_directory }}/cmd"
|
|
|
|
launch_script: "{{ user_directory }}/launch"
|
|
|
|
apparmor_profile: "{{ global_apparmor_profiles_directory }}/{{ launch_script | regex_replace('/', '.') }}"
|
|
|
|
|
|
|
|
# minecraft_version: "1.10"
|
|
|
|
minecraft_source_link_generator: "curl --silent https://mcversions.net/download/{{ minecraft_version | quote }} | grep --only-matching --perl-regexp '(?<=\")https://launcher.mojang.com/[^\"]+/server\\.jar(?=\")'"
|
|
|
|
minecraft_source_link: "{{ lookup('pipe', minecraft_source_link_generator) }}" # direct link to server jar
|
|
|
|
minecraft_port: "25565"
|
|
|
|
minecraft_query_port: "{{ minecraft_port }}"
|
|
|
|
minecraft_rcon_port: "{{ minecraft_port + 10 }}"
|
|
|
|
minecraft_rcon_password: "{{ lookup('password', 'credentials/' + inventory_hostname + '/' + domain + '/rcon length=80') }}"
|
|
|
|
java_version: 11
|
|
|
|
minecraft_ram: "1G"
|
|
|
|
minecraft_start_ram: "{{ minecraft_ram }}"
|
|
|
|
minecraft_max_ram: "{{ minecraft_ram }}"
|
|
|
|
minecraft_difficulty: "normal"
|
|
|
|
minecraft_view_distance: 10
|
|
|
|
minecraft_motd: "{{ domain }} Server"
|