ansible/playbooks/home_game.yml

46 lines
1.3 KiB
YAML
Raw Normal View History

2021-12-20 17:24:11 -06:00
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
# Game servers
---
- hosts: vm-minecraft-1.home.mgmt.desu.ltd
gather_facts: no
2021-12-20 17:24:11 -06:00
roles:
- role: docker-minecraft
vars:
minecraft_name: oceanblock
2022-06-14 14:50:51 -05:00
minecraft_external_port: 40501
minecraft_pack_zip: "https://srv.9iron.club/files/packs/1.16.5-oceanblock/latest.zip"
minecraft_image: "rehashedsalt/minecraft-forge:1.16.5-master"
minecraft_server_properties:
allow-flight: "true"
difficulty: hard
motd: "OCEAN MAN"
tags: [ minecraft ]
2021-12-20 17:24:11 -06:00
- role: backup
vars:
backup_s3backup_list_extra:
- /data
- /etc
backup_s3backup_exclude_list_extra:
2022-05-26 22:16:49 -05:00
- /data/minecraft/botaniapack2-survival
- /data/minecraft/botaniapack2-creative
- /data/minecraft/oceanblock/backups
2021-12-20 17:24:11 -06:00
tags: [ backup ]
2022-01-12 15:14:30 -06:00
- hosts: vm-terraria-1.home.mgmt.desu.ltd
gather_facts: no
2022-01-12 15:14:30 -06:00
pre_tasks:
- name: include tasks for gameservers
include_tasks: tasks/game/{{ item }}
with_items:
- terraria-thorium.yml
tags: [ always ]
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /data
- /etc
backup_s3backup_exclude_list_extra:
- /data/terraria-thorium/backups
tags: [ backup ]