diff --git a/playbooks/prod_web.yml b/playbooks/prod_web.yml index 40fcb6c..d6ec2b0 100755 --- a/playbooks/prod_web.yml +++ b/playbooks/prod_web.yml @@ -37,6 +37,7 @@ # Games - game/factorio.yml - game/minecraft-createfarming.yml + - game/minecraft-magicpack.yml - game/zomboid.yml tags: [ always ] roles: @@ -46,6 +47,7 @@ - /app/gitea/gitea - /data backup_s3backup_exclude_list_extra: + - /data/minecraft/magicpack/backups - /data/minecraft/direwolf20/backups - /data/shared/media - /data/shared/downloads diff --git a/playbooks/tasks/game/minecraft-createfarming.yml b/playbooks/tasks/game/minecraft-createfarming.yml index 6284bd8..4c005b1 100644 --- a/playbooks/tasks/game/minecraft-createfarming.yml +++ b/playbooks/tasks/game/minecraft-createfarming.yml @@ -2,7 +2,7 @@ - name: docker deploy minecraft - create farming and delights docker_container: name: minecraft-createfarming - state: started + state: absent image: itzg/minecraft-server:latest env: # Common envvars diff --git a/playbooks/tasks/game/minecraft-magicpack.yml b/playbooks/tasks/game/minecraft-magicpack.yml new file mode 100644 index 0000000..914f73d --- /dev/null +++ b/playbooks/tasks/game/minecraft-magicpack.yml @@ -0,0 +1,39 @@ +# vim:ft=ansible: +- name: docker deploy minecraft - magicpack + docker_container: + name: minecraft-magicpack + state: started + image: itzg/minecraft-server:java8 + env: + # Common envvars + EULA: "true" + OPS: "VintageSalt" + SNOOPER_ENABLED: "false" + SPAWN_PROTECTION: "0" + USE_AIKAR_FLAGS: "true" + RCON_CMDS_STARTUP: |- + scoreboard objectives add Deaths deathCount + #scoreboard objectives add Health health {"text":"❤","color":"red"} + RCON_CMDS_ON_CONNECT: |- + scoreboard objectives setdisplay list Deaths + #scoreboard objectives setdisplay belowName Health + # Pack-specific stuff + MODRINTH_PROJECT: "https://srv.9iron.club/files/packs/1.7.10-magicpack/server.mrpack" + MOTD: "It's ya boy, uh, skrunkly modpack" + TYPE: "MODRINTH" + VERSION: "1.7.10" + MAX_MEMORY: "6G" + #VIEW_DISTANCE: "10" + ports: + - "25565:25565/tcp" + - "25565:25565/udp" + - "24454:24454/udp" + # Prometheus exporter for Forge + # https://www.curseforge.com/minecraft/mc-mods/prometheus-exporter + - "19565:19565/tcp" + # Prometheus exporter for Fabric + # https://modrinth.com/mod/fabricexporter + #- "19565:25585/tcp" + volumes: + - /data/minecraft/magicpack:/data + tags: [ docker, minecraft, magicpack ]