apps: add minecruft server

This commit is contained in:
2025-10-11 20:55:16 -07:00
parent 08dfa02fd8
commit 9ebadac569
6 changed files with 231 additions and 159 deletions

View File

@@ -35,4 +35,5 @@
- arrstack
- vpgen
- pgrok
- minecruft
import_tasks: deploy_collection.yml

View File

@@ -0,0 +1,25 @@
EULA=true
CF_API_KEY="{{ minecruft_cf_api_key }}"
TYPE=AUTO_CURSEFORGE
CF_PAGE_URL=https://www.curseforge.com/minecraft/modpacks/create-arcane-engineering/files/4852034
CF_EXCLUDE_MODS=591711
CURSEFORGE_FILES=https://www.curseforge.com/minecraft/mc-mods/simple-voice-chat/files/7011546
MEMORY=16G
ENABLE_ROLLING_LOGS=true
#TZ=America/New_York
OVERRIDE_SERVER_PROPERTIES=true
DIFFICULTY=normal
MAX_TICK_TIME=-1
ALLOW_FLIGHT=true
OPS=Litoprobka,CaZzzer
VIEW_DISTANCE=12
MAX_PLAYERS=16
PVP=false
LEVEL_TYPE=normal
LEVEL_SEED=133769
MOTD="Remember the Cavendish"
ONLINE_MODE=false
SPAWN_PROTECTION=0

View File

@@ -0,0 +1,13 @@
services:
minecruft:
image: itzg/minecraft-server:java17-alpine
container_name: minecruft
ports:
- 25565:25565
- 25565:25565/udp
- 24454:24454/udp
restart: unless-stopped
env_file: .env.minecruft
volumes:
- {{ base_volume_path }}/minecruft/data:/data
- {{ base_volume_path }}/minecruft/downloads:/downloads

View File

@@ -80,6 +80,30 @@
state: enabled
immediate: yes
- name: Allow 25565 tcp for minecruft
become: yes
firewalld:
port: 25565/tcp
permanent: yes
state: enabled
immediate: yes
- name: Allow 25565 udp for minecruft
become: yes
firewalld:
port: 25565/udp
permanent: yes
state: enabled
immediate: yes
- name: Allow 24454 udp for minecruft voice chat
become: yes
firewalld:
port: 24454/udp
permanent: yes
state: enabled
immediate: yes
- name: Reboot if needed
become: yes
ansible.builtin.reboot: