2020-05-20 12:56:52 -05:00
|
|
|
#!/usr/bin/env ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
2020-08-05 23:42:17 -05:00
|
|
|
---
|
|
|
|
- hosts: gameservers
|
|
|
|
roles:
|
2020-08-08 20:37:28 -05:00
|
|
|
- role: base-backups
|
2020-08-05 23:42:17 -05:00
|
|
|
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
|
2020-08-27 17:40:53 -05:00
|
|
|
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-10-10 21:22:50 -05:00
|
|
|
# - role: minecraft-forge
|
2020-09-17 08:23:08 -05:00
|
|
|
# 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 ]
|