ansible/playbooks/gameservers.yml

48 lines
1.5 KiB
YAML

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: gameservers
roles:
- role: base-backups
tags: [ backups ]
- hosts: game1.thefuck.how
roles:
- role: base-backups
tags: [ backups ]
- role: gitweb
vars:
gitweb_repo: "https://git.9iron.club/salt/thefuck.how"
gitweb_url: "thefuck.how"
gitweb_webroot: "/var/www/thefuck.how"
tags: [ web, webroot ]
- role: minecraft
vars:
minecraft_name: valhelsia
minecraft_version: 1.16.3
minecraft_jre_xmx: 5G
minecraft_server_properties:
- opt: difficulty
value: hard
- opt: motd
value: "Brett's new serber, modded edition"
- 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"
become: yes
tags: [ gameserver, minecraft, forge, valhelsia ]
- role: minecraft-paper
vars:
paper_name: "thefuckhow"
paper_mc_maxplayers: 16
paper_mc_motd: "brett's new serber"
paper_jre_xms: 1024m
paper_jre_xmx: 2048m
tags: [ gameserver, minecraft, paper ]