ansible/playbooks/gameservers.yml

140 lines
3.9 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 ]
- role: minecraft
vars:
mcname: "me5"
mczip: "https://www.9iron.club/files/me5.zip"
mcforge: "1.12.2-14.23.5.2854"
2020-09-07 19:07:19 -05:00
mcmotd: "ME5 is Fun Edition"
2020-09-06 22:53:45 -05:00
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:
2020-08-08 20:37:28 -05:00
# - role: base-backups
# tags: [ backups ]
# - role: minecraft
# vars:
# mcname: "botania"
# mczip: "https://www.9iron.club/files/botaniapack-1.zip"
# mcforge: "1.10.2-12.18.3.2511"
# mcmotd: "Second go-around edition"
# mcport: 25565
# mcgamemode: 0
# mcviewdist: 14
# mcleveltype: "default"
# tags: [ gameserver, minecraft, botaniapack ]
# - role: steamgame
# vars:
# steam_appid: "232330"
# steam_path: "Counter-Strike Source Dedicated Server"
# tags: [ steam, gmod, css ]
# - role: sourcegame
# vars:
# source_appid: "4020"
# source_path: GarrysModDS
# source_game: garrysmod
# source_instancename: ttt
# source_args: "+gamemode terrortown +map ttt_lttp_kakariko_a4 +host_workshop_collection 2155532035"
# source_configrepo: "https://git.9iron.club/salt/gmodconfig"
# tags: [ steam, gmod ]
# tasks:
# - name: Assure Gmod CNAME record
# route53:
# state: present
# overwrite: yes
# zone: 9iron.club
# type: CNAME
# record: "{{ source_instancename }}.src.9iron.club."
# ttl: 3600
# value: [ "{{ inventory_hostname }}." ]
# become: yes
# tags: [ dns ]
# - name: Assure Minecraft CNAME record
# route53:
# state: present
# overwrite: yes
# zone: 9iron.club
# type: CNAME
# record: "{{ mcname }}.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.{{ mcname }}.mc.{{ zone }}."
# ttl: 3600
# value: [ "1 10 {{ mcport }} {{ inventory_hostname }}." ]
# become: yes
# tags: [ dns ]
2020-07-27 09:32:31 -05:00
#- hosts: game2
# roles:
2020-08-08 20:37:28 -05:00
# - role: base-backups
2020-07-27 09:32:31 -05:00
# tags: [ backups ]
# - role: minecraft
# vars:
# mcname: "magic-main"
# mczip: "https://www.9iron.club/files/magicpackredux.zip"
# mcforge: "1.12.2-14.23.5.2854"
# mcmotd: "Blood for the blood god, flowers for the flower throne"
# mcport: 25567
# mcgamemode: 0
# mcviewdist: 14
# mcleveltype: "default"
# tags: [ gameserver, minecraft, magicpack ]