diff --git a/roles/minecraft/defaults/main.yml b/roles/minecraft/defaults/main.yml index 964135f..1d622be 100644 --- a/roles/minecraft/defaults/main.yml +++ b/roles/minecraft/defaults/main.yml @@ -39,6 +39,9 @@ minecraft_rcon_certresolver: letsencrypt_http # The domain under which the rcon web console/websocket is reachable (used by traefik) minecraft_rcon_domain: minecraft.example.com +# Should RCON be enabled on the minecraft server? +minecraft_enable_rcon: true + # Should the RCON webinterface be deployed? minecraft_enable_rcon_web: false diff --git a/roles/minecraft/templates/docker-compose.yml b/roles/minecraft/templates/docker-compose.yml index f1d9516..a811590 100644 --- a/roles/minecraft/templates/docker-compose.yml +++ b/roles/minecraft/templates/docker-compose.yml @@ -33,7 +33,7 @@ services: - no-new-privileges environment: EULA: "TRUE" - ENABLE_RCON: "{{ minecraft_enable_rcon_web | bool | lower }}" + ENABLE_RCON: "{{ minecraft_enable_rcon | bool | lower }}" RCON_PASSWORD: "{{ minecraft_rcon_password }}" RCON_PORT: 28016 # enable env variable replacement