Add a new ME5 serber

This commit is contained in:
Salt 2020-09-06 22:53:45 -05:00
parent cfbb6d325d
commit ddd8ed57e1
2 changed files with 40 additions and 1 deletions

View File

@ -98,4 +98,5 @@ all:
38313431663734343931333462316633643935353038313934663466303834636533616165353961
6438356265656532396363323532616437353831613261323037
hosts:
tes3mp1.9iron.club
mc1.9iron.club:
tes3mp1.9iron.club:

View File

@ -21,6 +21,44 @@
value: [ "{{ inventory_hostname }}." ]
become: yes
tags: [ dns ]
- hosts: mc1.9iron.club
roles:
- role: base-backups
tags: [ backups ]
- role: minecraft
vars:
mcname: "me5"
mczip: "https://www.9iron.club/files/me5.zip"
mcforge: "1.12.2-14.23.5.2854"
mcmotd: "ME5 with Jacob Edition"
mcport: 25565
mcgamemode: 0
mcviewdist: 14
mcleveltype: "default"
tags: [ gameserver, minecraft, me5 ]
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
tags: [ dns ]
- 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
tags: [ dns ]
#- hosts: game1.9iron.club
# roles:
# - role: base-backups