ansible/playbooks/game.yml
2021-01-17 00:53:48 -06:00

130 lines
4.3 KiB
YAML
Executable File

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
# Database servers
---
- hosts: game1.thefuck.how
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /opt/minecraft/dammit
- /opt/minecraft/valhelsia
- /opt/minecraft/vanilla
- /opt/factorio
backup_s3backup_exclude_list_extra:
- /opt/minecraft/dammit/backups
- /opt/minecraft/valhelsia/backups
- /opt/minecraft/vanilla/backups
become: yes
tags: [ backup ]
- role: motd
vars:
motd_watch_services_extra:
- minecraft@dammit
- minecraft@valhelsia
- minecraft@vanilla
become: yes
tags: [ motd ]
- role: minecraft
vars:
minecraft_enabled: no
minecraft_name: valhelsia
minecraft_version: 1.16.3
minecraft_jre_xmx: 5G
minecraft_server_properties:
- opt: difficulty
value: hard
- opt: motd
value: "Let's get this out onto a tray. Nice, mmkay"
- opt: server-port
value: 25566
- opt: view-distance
value: 10
minecraft_forge_install: yes
minecraft_forge_version: 34.1.42
minecraft_forge_packurl: "https://media.forgecdn.net/files/3110/654/Valhelsia_SERVER-pre5-3.1.0.zip"
minecraft_forge_mods:
- "https://media.forgecdn.net/files/3091/862/ftb-gui-library-1603.1.1.25.jar"
- "https://media.forgecdn.net/files/3105/153/ftb-chunks-1603.2.0.43.jar"
- "https://media.forgecdn.net/files/3113/275/industrial-foregoing-1.16.4-3.2.2-daea863.jar"
minecraft_forge_mods_remove:
- industrial-foregoing-1.16.3-3.1.1-a834e76.jar
become: yes
tags: [ game, minecraft, forge, valhelsia ]
- 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" ]
become: yes
tags: [ game, factorio ]
- hosts: game1.thefuck.how
roles:
- role: minecraft
vars:
minecraft_enabled: no
minecraft_name: vanilla
minecraft_version: 1.16.4
minecraft_jre_xmx: 1G
minecraft_jre_xms: 512M
minecraft_server_properties:
- opt: difficulty
value: normal
- opt: motd
value: "brett's new serber"
- opt: server-port
value: 25565
- opt: spawn-protection
value: 4
- opt: view-distance
value: 12
minecraft_paper_install: yes
become: yes
tags: [ game, minecraft, paper, vanilla ]
- hosts: game1.thefuck.how
roles:
- role: minecraft
vars:
minecraft_name: dammit
minecraft_version: 1.7.10
minecraft_jre_xmx: 4G
minecraft_restart_delay: 30
minecraft_server_properties:
- opt: allow-flight
value: "true"
- opt: difficulty
value: 3
- opt: motd
value: "I can't believe that I actually exist"
- opt: server-port
value: 25567
- opt: view-distance
value: 12
minecraft_forge_install: yes
minecraft_forge_version: 10.13.4.1614
minecraft_forge_versionstring: "{{ minecraft_version }}-{{ minecraft_forge_version }}-{{ minecraft_version }}"
minecraft_forge_jar_name: "forge-{{ minecraft_forge_versionstring }}-universal.jar"
minecraft_forge_packurl: "https://www.9iron.club/files/magic-1.7.10-2.zip"
minecraft_forge_mods_remove:
- DynamicSurroundings-1.7.10-1.0.6.2.jar
- favorites-1.2.jar
- FullscreenWindowed-1.7.10-1.3.0b.jar
- MouseTweaks-2.4.4-mc1.7.10.jar
- "Neat 1.0-1.jar"
- OptiFine_1.7.10_HD_U_E7.jar
- SoundFilters-0.8_for_1.7.X.jar
- Stellar+API-0.1.3.8.jar
- Stellar+Sky-0.1.5.7.jar
- World-Tooltips-1.7.10-1.2.3-79.jar
become: yes
tags: [ game, minecraft, forge, dammit ]