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-02-09 04:39:56 -06:00
|
|
|
- hosts: game1.desu.ltd
|
2021-01-18 05:31:04 -06:00
|
|
|
vars_files:
|
|
|
|
- vars/factorio-main.yml
|
2020-12-21 03:14:15 -06:00
|
|
|
roles:
|
2020-12-24 09:19:12 -06:00
|
|
|
- role: backup
|
|
|
|
vars:
|
|
|
|
backup_s3backup_list_extra:
|
2021-03-13 16:21:40 -06:00
|
|
|
- /data
|
2021-01-01 00:33:02 -06:00
|
|
|
- /opt/minecraft/dammit
|
2020-12-29 08:35:41 -06:00
|
|
|
- /opt/minecraft/valhelsia
|
2020-12-29 08:33:24 -06:00
|
|
|
- /opt/minecraft/vanilla
|
2020-12-24 09:19:12 -06:00
|
|
|
- /opt/factorio
|
2020-12-29 08:35:41 -06:00
|
|
|
backup_s3backup_exclude_list_extra:
|
2021-01-01 00:33:02 -06:00
|
|
|
- /opt/minecraft/dammit/backups
|
2020-12-29 08:35:41 -06:00
|
|
|
- /opt/minecraft/valhelsia/backups
|
|
|
|
- /opt/minecraft/vanilla/backups
|
2020-12-24 09:19:12 -06:00
|
|
|
tags: [ backup ]
|
2021-03-05 00:56:03 -06:00
|
|
|
- role: docker
|
|
|
|
tags: [ docker, skip-pull ]
|
2021-01-17 00:53:48 -06:00
|
|
|
- role: motd
|
|
|
|
vars:
|
|
|
|
motd_watch_services_extra:
|
2021-03-05 01:16:01 -06:00
|
|
|
- docker
|
2021-01-17 00:53:48 -06:00
|
|
|
- minecraft@dammit
|
|
|
|
- minecraft@valhelsia
|
|
|
|
- minecraft@vanilla
|
|
|
|
tags: [ motd ]
|
2020-12-21 21:19:47 -06:00
|
|
|
- role: factorio
|
|
|
|
vars:
|
|
|
|
server_version: 1.0.0
|
|
|
|
download_checksum: sha256:81d9e1aa94435aeec4131c8869fa6e9331726bea1ea31db750b65ba42dbd1464
|
|
|
|
service_name: factorio-main
|
|
|
|
service_root: /opt/factorio/main
|
|
|
|
factorio_server_settings:
|
|
|
|
name: "Krabby Land"
|
|
|
|
description: "Where a kid can have fun"
|
|
|
|
max_players: 8
|
|
|
|
visibility:
|
|
|
|
public: false
|
|
|
|
lan: false
|
|
|
|
admins: [ "rehashed_salt" ]
|
|
|
|
tags: [ game, factorio ]
|
2021-02-04 02:02:00 -06:00
|
|
|
# Vanilla Ice
|
|
|
|
# Note that this one doesn't get a nightly restart job because Paper is awesome
|
2021-02-09 04:39:56 -06:00
|
|
|
- hosts: game1.desu.ltd
|
2021-01-18 05:31:04 -06:00
|
|
|
vars_files:
|
|
|
|
- vars/minecraft-vanilla.yml
|
2021-01-01 00:33:02 -06:00
|
|
|
roles:
|
|
|
|
- role: minecraft
|
|
|
|
tags: [ game, minecraft, paper, vanilla ]
|
2021-02-04 02:02:00 -06:00
|
|
|
# Valhelsia
|
2021-02-09 04:39:56 -06:00
|
|
|
- hosts: game1.desu.ltd
|
2021-02-04 02:02:00 -06:00
|
|
|
tasks:
|
|
|
|
- name: restart minecraft@valhelsia nightly
|
|
|
|
cron: name=restart-valhelsia hour=5 minute=0 job="systemctl restart minecraft@valhelsia" disabled={{ not minecraft_enabled }}
|
|
|
|
tags: [ game, minecraft, forge, valhelsia, cron ]
|
|
|
|
vars_files:
|
|
|
|
- vars/minecraft-valhelsia.yml
|
|
|
|
roles:
|
|
|
|
- role: minecraft
|
|
|
|
tags: [ game, minecraft, forge, valhelsia ]
|
|
|
|
# The Magic Pack
|
2021-02-09 04:39:56 -06:00
|
|
|
- hosts: game1.desu.ltd
|
2021-02-04 02:00:40 -06:00
|
|
|
tasks:
|
|
|
|
- name: restart minecraft@dammit nightly
|
|
|
|
cron: name=restart-dammit hour=5 minute=0 job="systemctl restart minecraft@dammit" disabled={{ not minecraft_enabled }}
|
|
|
|
tags: [ game, minecraft, forge, dammit, cron ]
|
2021-01-18 05:31:04 -06:00
|
|
|
vars_files:
|
|
|
|
- vars/minecraft-dammit.yml
|
2021-01-01 00:33:02 -06:00
|
|
|
roles:
|
|
|
|
- role: minecraft
|
|
|
|
tags: [ game, minecraft, forge, dammit ]
|
2021-03-16 21:25:01 -05:00
|
|
|
- hosts: game2.desu.ltd
|
|
|
|
vars:
|
|
|
|
container_default_behavior: no_defaults
|
|
|
|
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-03-22 21:33:06 -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-03-22 21:33:06 -05:00
|
|
|
state: started
|
2021-03-30 19:37:31 -05:00
|
|
|
image: rehashedsalt/tmodloader-docker:bleeding
|
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 ]
|
2021-03-16 21:25:01 -05:00
|
|
|
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 ]
|