2020-12-21 03:14:15 -06:00
|
|
|
#!/usr/bin/env ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
2021-01-18 05:31:36 -06:00
|
|
|
# Game servers
|
2020-12-21 03:14:15 -06:00
|
|
|
---
|
2021-08-01 22:28:39 -05:00
|
|
|
- hosts: tags_game
|
2021-05-11 21:16:29 -05:00
|
|
|
roles:
|
|
|
|
- role: backup
|
|
|
|
vars:
|
|
|
|
backup_s3backup_list_extra:
|
|
|
|
- /data
|
2021-05-14 09:51:32 -05:00
|
|
|
backup_s3backup_exclude_list_extra:
|
|
|
|
- /data/minecraft/valhelsia3/backups
|
2021-05-11 21:16:29 -05:00
|
|
|
tags: [ backup ]
|
|
|
|
- role: motd
|
|
|
|
vars:
|
|
|
|
motd_watch_services_extra:
|
|
|
|
- docker
|
|
|
|
tags: [ motd ]
|
|
|
|
- role: docker
|
|
|
|
tags: [ docker, skip-pull ]
|
|
|
|
- hosts: game1.desu.ltd
|
|
|
|
tasks:
|
2021-07-18 23:21:00 -05:00
|
|
|
- name: docker deploy gmod
|
|
|
|
docker_container:
|
|
|
|
name: gmod
|
|
|
|
state: started
|
|
|
|
image: hackebein/garrysmod
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
pull: yes
|
|
|
|
tty: yes
|
|
|
|
env:
|
|
|
|
AUTHKEY: "{{ steam_apikey }}"
|
|
|
|
GAMEMODE: prop_hunt
|
2021-07-26 21:58:31 -05:00
|
|
|
MAP: ph_islandhouse
|
2021-07-18 23:21:00 -05:00
|
|
|
WORKSHOP: "2155532035"
|
|
|
|
WORKSHOPDL: "2155532035"
|
|
|
|
ports:
|
|
|
|
- "1200:1200"
|
|
|
|
- "26901:26901/udp"
|
|
|
|
- "27005:27005/udp"
|
|
|
|
- "27015:27015"
|
|
|
|
- "27015:27015/udp"
|
|
|
|
- "27020:27020/udp"
|
|
|
|
volumes:
|
|
|
|
- /data/gmod:/opt/overlay
|
|
|
|
tags: [ docker, gmod ]
|
2021-06-11 12:20:26 -05:00
|
|
|
- name: docker deploy starbound
|
|
|
|
docker_container:
|
|
|
|
name: starbound
|
2021-07-15 00:35:32 -05:00
|
|
|
state: absent
|
2021-06-11 12:20:26 -05:00
|
|
|
image: didstopia/starbound-server
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
pull: yes
|
|
|
|
env:
|
|
|
|
SKIP_STEAMCMD: "true"
|
|
|
|
ports:
|
|
|
|
- "21025:21025"
|
|
|
|
volumes:
|
|
|
|
- /data/starbound/main:/steamcmd/starbound
|
|
|
|
tags: [ docker, starbound ]
|
2021-07-15 00:35:32 -05:00
|
|
|
- name: docker deploy minecraft botaniapack2-survival
|
|
|
|
docker_container:
|
|
|
|
name: botaniapack2-survival
|
2021-08-03 16:04:10 -05:00
|
|
|
state: started
|
2021-07-15 00:35:32 -05:00
|
|
|
image: rehashedsalt/minecraft-forge:1.16.5-36.1.13-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: 5G
|
|
|
|
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"
|
|
|
|
volumes:
|
|
|
|
- /data/minecraft/botaniapack2-survival/backups:/minecraft/backups
|
|
|
|
- /data/minecraft/botaniapack2-survival/logs:/minecraft/logs
|
|
|
|
- /data/minecraft/botaniapack2-survival/world:/minecraft/world
|
|
|
|
- /data/minecraft/botaniapack2-survival/ops.json:/minecraft/ops.json
|
2021-07-18 18:43:40 -05:00
|
|
|
- /data/minecraft/botaniapack2-survival/server.properties:/minecraft/server.properties
|
2021-07-15 00:35:32 -05:00
|
|
|
tags: [ docker, minecraft, botania, survival ]
|
2021-05-11 21:16:29 -05:00
|
|
|
- name: docker deploy minecraft valhelsia3
|
|
|
|
docker_container:
|
|
|
|
name: valhelsia3
|
2021-07-13 12:22:22 -05:00
|
|
|
state: absent
|
2021-05-24 22:25:19 -05:00
|
|
|
image: rehashedsalt/minecraft-forge:1.16.5-36.1.13-openjdk11
|
2021-05-11 21:16:29 -05:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
pull: yes
|
|
|
|
env:
|
2021-05-21 11:49:27 -05:00
|
|
|
TZ: "America/Chicago"
|
2021-06-08 23:18:26 -05:00
|
|
|
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"
|
2021-05-17 14:17:37 -05:00
|
|
|
JRE_XMX: 5G
|
|
|
|
JRE_XMS: 2G
|
2021-05-11 22:28:19 -05:00
|
|
|
FORGE_PACK_ZIP: "https://srv.9iron.club/files/packs/1.16.5-valhelsia/server.zip"
|
2021-05-11 21:16:29 -05:00
|
|
|
ports:
|
|
|
|
- "25565:25565/tcp"
|
|
|
|
- "25565:25565/udp"
|
|
|
|
volumes:
|
2021-05-12 18:51:32 -05:00
|
|
|
- /data/minecraft/valhelsia3/backups:/minecraft/backups
|
2021-05-12 23:35:43 -05:00
|
|
|
- /data/minecraft/valhelsia3/logs:/minecraft/logs
|
2021-05-11 21:16:29 -05:00
|
|
|
- /data/minecraft/valhelsia3/world:/minecraft/world
|
|
|
|
- /data/minecraft/valhelsia3/ops.json:/minecraft/ops.json
|
|
|
|
tags: [ docker, minecraft ]
|
2021-03-16 21:25:01 -05:00
|
|
|
- hosts: game2.desu.ltd
|
|
|
|
tasks:
|
2021-06-15 23:21:18 -05:00
|
|
|
- name: docker deploy css
|
|
|
|
docker_container:
|
|
|
|
name: css
|
|
|
|
state: started
|
|
|
|
image: foxylion/steam-css
|
|
|
|
restart_policy: unless-stopped
|
2021-07-03 22:19:43 -05:00
|
|
|
command: "/home/steam/entrypoint.sh update"
|
2021-06-15 23:21:18 -05:00
|
|
|
pull: yes
|
|
|
|
ports:
|
|
|
|
- "1200:1200"
|
|
|
|
- "26901:26901/udp"
|
|
|
|
- "27005:27005/udp"
|
|
|
|
- "27015:27015"
|
|
|
|
- "27015:27015/udp"
|
|
|
|
- "27020:27020/udp"
|
2021-06-16 01:51:29 -05:00
|
|
|
volumes:
|
|
|
|
- /data/css/server.cfg:/home/steam/css/cstrike/cfg/my-server.cfg
|
2021-06-15 23:21:18 -05:00
|
|
|
tags: [ docker, css ]
|
2021-07-15 00:35:32 -05:00
|
|
|
- name: docker deploy minecraft botaniapack2-creative
|
|
|
|
docker_container:
|
|
|
|
name: botaniapack2-creative
|
2021-08-03 16:04:10 -05:00
|
|
|
state: started
|
2021-07-15 00:35:32 -05:00
|
|
|
image: rehashedsalt/minecraft-forge:1.16.5-36.1.13-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: 3G
|
|
|
|
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"
|
|
|
|
volumes:
|
|
|
|
- /data/minecraft/botaniapack2-creative/backups:/minecraft/backups
|
|
|
|
- /data/minecraft/botaniapack2-creative/logs:/minecraft/logs
|
|
|
|
- /data/minecraft/botaniapack2-creative/world:/minecraft/world
|
|
|
|
- /data/minecraft/botaniapack2-creative/ops.json:/minecraft/ops.json
|
2021-07-18 18:43:40 -05:00
|
|
|
- /data/minecraft/botaniapack2-creative/server.properties:/minecraft/server.properties
|
2021-07-15 00:35:32 -05:00
|
|
|
tags: [ docker, minecraft, botania, creative ]
|
2021-03-16 21:25:01 -05:00
|
|
|
# https://github.com/mkrupczak3/SCP-SECRET-LAB-DOCKER
|
|
|
|
# Kinda forked it and changed a few settings tho
|
|
|
|
- name: docker deploy scpsl
|
|
|
|
docker_container:
|
|
|
|
name: scpsl
|
2021-07-15 00:35:32 -05:00
|
|
|
state: absent
|
2021-03-16 21:25:01 -05:00
|
|
|
image: rehashedsalt/scpsl:latest
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
pull: yes
|
|
|
|
ports:
|
|
|
|
- "7777-7784:7777-7784/udp"
|
|
|
|
- "7777-7784:7777-7784"
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /home/steam/steamcmd
|
|
|
|
- /home/steam/scp_server
|
|
|
|
tags: [ docker, scpsl ]
|
2021-03-21 21:06:52 -05:00
|
|
|
- name: docker deploy terraria
|
|
|
|
docker_container:
|
|
|
|
name: terraria
|
2021-05-01 01:02:42 -05:00
|
|
|
state: absent
|
2021-03-31 22:18:40 -05:00
|
|
|
image: rehashedsalt/tmodloader-docker:v0.11.8.3
|
2021-03-21 21:06:52 -05:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
pull: yes
|
|
|
|
ports:
|
|
|
|
- 7777:7777
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /data/terraria/data:/terraria
|
|
|
|
tags: [ docker, terraria ]
|