initial commital
This commit is contained in:
61
roles/minecraft-podman/templates/minecraft.env.j2
Normal file
61
roles/minecraft-podman/templates/minecraft.env.j2
Normal file
@@ -0,0 +1,61 @@
|
||||
# Minecraft Server Environment Variables
|
||||
# Deployed by Ansible - Managed file, do not edit manually
|
||||
|
||||
# Version and Server Type
|
||||
TYPE={{ minecraft.server_type | upper }}
|
||||
VERSION={{ minecraft.version }}
|
||||
|
||||
# Memory
|
||||
MEMORY={{ minecraft.java_memory }}
|
||||
{% if minecraft.java_args is defined %}
|
||||
JVM_OPTS="{{ minecraft.java_args }}"
|
||||
{% endif %}
|
||||
|
||||
# Network
|
||||
PORT={{ minecraft.port }}
|
||||
{% if minecraft.rcon_enabled %}
|
||||
ENABLE_RCON=true
|
||||
RCON_PORT={{ minecraft.rcon_port }}
|
||||
RCON_PASSWORD={{ minecraft.rcon_password }}
|
||||
{% else %}
|
||||
ENABLE_RCON=false
|
||||
{% endif %}
|
||||
|
||||
# Server Settings
|
||||
MOTD={{ minecraft.motd }}
|
||||
MAX_PLAYERS={{ minecraft.max_players }}
|
||||
GAMEMODE={{ minecraft.game_mode }}
|
||||
DIFFICULTY={{ minecraft.difficulty }}
|
||||
{% if minecraft.online_mode %}
|
||||
ONLINE_MODE=true
|
||||
{% else %}
|
||||
ONLINE_MODE=false
|
||||
{% endif %}
|
||||
VIEW_DISTANCE={{ minecraft.view_distance | default(10) }}
|
||||
SIMULATION_DISTANCE={{ minecraft.simulation_distance | default(6) }}
|
||||
|
||||
{% if minecraft.whitelist_enabled %}
|
||||
ENABLE_WHITELIST=true
|
||||
{% else %}
|
||||
ENABLE_WHITELIST=false
|
||||
{% endif %}
|
||||
|
||||
{% if minecraft.enable_command_block %}
|
||||
ENABLE_COMMAND_BLOCK=true
|
||||
{% else %}
|
||||
ENABLE_COMMAND_BLOCK=false
|
||||
{% endif %}
|
||||
|
||||
{% if minecraft.max_world_size %}
|
||||
MAX_WORLD_SIZE={{ minecraft.max_world_size }}
|
||||
{% endif %}
|
||||
|
||||
{% if minecraft.spawn_protection %}
|
||||
SPAWN_PROTECTION={{ minecraft.spawn_protection }}
|
||||
{% endif %}
|
||||
|
||||
# Server name broadcast
|
||||
SERVER_NAME={{ minecraft.server_name }}
|
||||
|
||||
# Make the container non-interactive
|
||||
EULA=TRUE
|
||||
Reference in New Issue
Block a user