Add a Minecraft server *at home*

This commit is contained in:
Salt 2021-12-20 17:24:11 -06:00
parent ec9c51b34a
commit 5e7b8bb881
5 changed files with 27 additions and 5 deletions

View File

@ -10,4 +10,5 @@
backup_s3backup_exclude_list_extra:
- /data/terraria-fargo/backups
- /data/minecraft/hexxit2-survival/backups
- /data/minecraft/botaniapack2-survival/backups
tags: [ backup ]

20
playbooks/home_game.yml Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
# Game servers
---
- hosts: vm-minecraft-1.home.mgmt.desu.ltd
pre_tasks:
- name: include tasks for gameservers
include_tasks: tasks/game/{{ item }}
with_items:
- minecraft-botaniapack2-survival.yml
tags: [ always ]
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /data
- /etc
backup_s3backup_exclude_list_extra:
- /data/minecraft/botaniapack2-survival/backups
tags: [ backup ]

View File

@ -3,7 +3,7 @@
docker_container:
name: botaniapack2-creative
state: absent
image: rehashedsalt/minecraft-forge:1.16.5-36.1.13-openjdk11
image: rehashedsalt/minecraft-forge:1.16.5-36.2.22-openjdk11
restart_policy: unless-stopped
pull: yes
env:

View File

@ -2,8 +2,8 @@
- name: docker deploy minecraft botaniapack2-survival
docker_container:
name: botaniapack2-survival
state: absent
image: rehashedsalt/minecraft-forge:1.16.5-36.1.13-openjdk11
state: started
image: rehashedsalt/minecraft-forge:1.16.5-36.2.22-openjdk11
restart_policy: unless-stopped
pull: yes
env:
@ -13,8 +13,8 @@
JRE_XMS: 3G
FORGE_PACK_ZIP: "https://srv.9iron.club/files/packs/1.16.5-botaniapack2/latest.zip"
ports:
- "25565:25565/tcp"
- "25565:25565/udp"
- "40501:25565/tcp"
- "40501:25565/udp"
volumes:
- /data/minecraft/botaniapack2-survival/backups:/minecraft/backups
- /data/minecraft/botaniapack2-survival/logs:/minecraft/logs

View File

@ -21,6 +21,7 @@
- import_playbook: playbooks/home_db.yml
- import_playbook: playbooks/home_fs.yml
- import_playbook: playbooks/home_app.yml
- import_playbook: playbooks/home_game.yml
- import_playbook: playbooks/home_media.yml
- import_playbook: playbooks/home_automation.yml
# Production configuration