ansible/playbooks/gameservers.yml

79 lines
2.0 KiB
YAML
Raw Normal View History

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: gameservers
roles:
2020-08-08 20:37:28 -05:00
- role: base-backups
tags: [ backups ]
2020-08-23 23:12:39 -05:00
- hosts: tes3mp1.9iron.club
roles:
- role: tes3mp
tags: [ tes3mp ]
tasks:
- name: Assure CNAME record
route53:
state: present
overwrite: yes
zone: 9iron.club
type: CNAME
record: tes3mp.9iron.club
ttl: 3600
2020-08-23 23:12:39 -05:00
value: [ "{{ inventory_hostname }}." ]
become: yes
tags: [ dns ]
2020-09-06 22:53:45 -05:00
- hosts: mc1.9iron.club
roles:
- role: base-backups
tags: [ backups ]
2020-09-17 08:23:08 -05:00
# - role: minecraft
# vars:
# mcname: "me5"
# mczip: "https://www.9iron.club/files/me5.zip"
# mcforge: "1.12.2-14.23.5.2854"
# mcmotd: "ME5 is Fun Edition"
# mcport: 25565
# mcgamemode: 0
# mcviewdist: 14
# mcleveltype: "default"
# tags: [ gameserver, minecraft, me5 ]
2020-09-12 20:52:57 -05:00
- role: tmodloader
vars:
2020-09-12 21:21:54 -05:00
terraria_difficulty: 1
2020-09-12 20:52:57 -05:00
terraria_name: "calamity"
terraria_password: "dicks"
tags: [ gameserver, terraria, calamity ]
2020-09-06 22:53:45 -05:00
tasks:
- name: Assure Minecraft CNAME record
route53:
state: present
overwrite: yes
zone: 9iron.club
type: CNAME
record: "me5.mc.9iron.club."
ttl: 3600
value: [ "{{ inventory_hostname }}." ]
become: yes
2020-09-12 20:52:57 -05:00
tags: [ dns, minecraft, me5 ]
2020-09-06 22:53:45 -05:00
- name: Assure Minecraft SRV record
route53:
state: present
overwrite: yes
zone: 9iron.club
type: SRV
record: "_minecraft._tcp.me5.mc.9iron.club."
ttl: 3600
value: [ "1 10 25565 {{ inventory_hostname }}." ]
become: yes
2020-09-12 20:52:57 -05:00
tags: [ dns, minecraft, me5 ]
- name: Assure Terraria record
route53:
state: present
overwrite: yes
zone: 9iron.club
type: CNAME
record: "calamity.9iron.club"
ttl: 3600
value: [ "{{ inventory_hostname }}." ]
become: yes
tags: [ dns, terraria, calamity ]