Provision a new mc serber
This commit is contained in:
parent
aef8f31c87
commit
c49d4cefad
@ -20,6 +20,22 @@
|
||||
- /data/minecraft/botaniapack2-survival/backups
|
||||
- /data/minecraft/botaniapack2-creative/backups
|
||||
tags: [ backup ]
|
||||
- hosts: vm-minecraft-2.home.mgmt.desu.ltd
|
||||
pre_tasks:
|
||||
- name: include tasks for gameservers
|
||||
include_tasks: tasks/game/{{ item }}
|
||||
with_items:
|
||||
- minecraft-enigmatica6.yml
|
||||
tags: [ always ]
|
||||
roles:
|
||||
- role: backup
|
||||
vars:
|
||||
backup_s3backup_list_extra:
|
||||
- /data
|
||||
- /etc
|
||||
backup_s3backup_exclude_list_extra:
|
||||
- /data/minecraft/enigmatica6/backups
|
||||
tags: [ backup ]
|
||||
- hosts: vm-terraria-1.home.mgmt.desu.ltd
|
||||
pre_tasks:
|
||||
- name: include tasks for gameservers
|
||||
|
24
playbooks/tasks/game/minecraft-enigmatica6.yml
Normal file
24
playbooks/tasks/game/minecraft-enigmatica6.yml
Normal file
@ -0,0 +1,24 @@
|
||||
# vim:ft=ansible:
|
||||
- name: docker deploy minecraft enigmatica6
|
||||
docker_container:
|
||||
name: enigmatica6
|
||||
state: started
|
||||
image: rehashedsalt/minecraft-forge:1.16.5-36.2.22-openjdk11
|
||||
restart_policy: unless-stopped
|
||||
pull: yes
|
||||
env:
|
||||
TZ: "America/Chicago"
|
||||
ARGS: "-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1"
|
||||
JRE_XMX: 6G
|
||||
JRE_XMS: 4G
|
||||
FORGE_PACK_ZIP: "https://srv.9iron.club/files/packs/1.16.5-enigmatica-6/server.zip"
|
||||
ports:
|
||||
- "40503:25565/tcp"
|
||||
- "40503:25565/udp"
|
||||
volumes:
|
||||
- /data/minecraft/enigmatica6/backups:/minecraft/backups
|
||||
- /data/minecraft/enigmatica6/logs:/minecraft/logs
|
||||
- /data/minecraft/enigmatica6/ops.json:/minecraft/ops.json
|
||||
- /data/minecraft/enigmatica6/server.properties:/minecraft/server.properties
|
||||
- /data/minecraft/enigmatica6/world:/minecraft/world
|
||||
tags: [ docker, minecraft, botania, survival ]
|
Loading…
Reference in New Issue
Block a user