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-05-11 21:16:29 -05:00
|
|
|
- hosts: game
|
|
|
|
roles:
|
|
|
|
- role: backup
|
|
|
|
vars:
|
|
|
|
backup_s3backup_list_extra:
|
|
|
|
- /data
|
|
|
|
tags: [ backup ]
|
|
|
|
- role: motd
|
|
|
|
vars:
|
|
|
|
motd_watch_services_extra:
|
|
|
|
- docker
|
|
|
|
tags: [ motd ]
|
|
|
|
- role: docker
|
|
|
|
tags: [ docker, skip-pull ]
|
|
|
|
- hosts: game1.desu.ltd
|
|
|
|
tasks:
|
|
|
|
- name: docker deploy minecraft valhelsia3
|
|
|
|
docker_container:
|
|
|
|
name: valhelsia3
|
|
|
|
state: started
|
|
|
|
image: rehashedsalt/minecraft-forge:1.16.5-36.1.13-1.0.0
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
pull: yes
|
|
|
|
env:
|
|
|
|
JRE_XMX: 6G
|
|
|
|
JRE_XMS: 3G
|
|
|
|
FORGE_PACK_ZIP: "https://media.forgecdn.net/files/3293/967/Valhelsia+3-3.3.1-SERVER.zip"
|
|
|
|
ports:
|
|
|
|
- "25565:25565/tcp"
|
|
|
|
- "25565:25565/udp"
|
|
|
|
volumes:
|
|
|
|
- /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:
|
|
|
|
# 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-05-01 01:02:42 -05:00
|
|
|
state: started
|
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 ]
|