ansible/playbooks/game.yml

73 lines
2.3 KiB
YAML
Raw Normal View History

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
# Game servers
---
- hosts: game1.thefuck.how
vars_files:
- vars/factorio-main.yml
roles:
2020-12-24 09:19:12 -06:00
- role: backup
vars:
backup_s3backup_list_extra:
2021-01-01 00:33:02 -06:00
- /opt/minecraft/dammit
- /opt/minecraft/valhelsia
2020-12-29 08:33:24 -06:00
- /opt/minecraft/vanilla
2020-12-24 09:19:12 -06:00
- /opt/factorio
backup_s3backup_exclude_list_extra:
2021-01-01 00:33:02 -06:00
- /opt/minecraft/dammit/backups
- /opt/minecraft/valhelsia/backups
- /opt/minecraft/vanilla/backups
2020-12-24 09:19:12 -06:00
tags: [ backup ]
2021-01-17 00:53:48 -06:00
- role: motd
vars:
motd_watch_services_extra:
- 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 ]
# Vanilla Ice
# Note that this one doesn't get a nightly restart job because Paper is awesome
2021-01-01 00:33:02 -06:00
- hosts: game1.thefuck.how
vars_files:
- vars/minecraft-vanilla.yml
2021-01-01 00:33:02 -06:00
roles:
- role: minecraft
tags: [ game, minecraft, paper, vanilla ]
# Valhelsia
- hosts: game1.thefuck.how
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-01-01 00:33:02 -06:00
- hosts: game1.thefuck.how
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 ]
vars_files:
- vars/minecraft-dammit.yml
2021-01-01 00:33:02 -06:00
roles:
- role: minecraft
tags: [ game, minecraft, forge, dammit ]