Polish up DNS a bit

This commit is contained in:
Salt 2020-08-01 16:36:04 -05:00
parent bddbf8c0d9
commit 68ddce3237
3 changed files with 7 additions and 1 deletions

View File

@ -13,4 +13,5 @@
ttl: 300
value: [ "{{ ipify_public_ip }}" ]
wait: yes
become: yes
tags: [ common, dns ]

View File

@ -40,6 +40,7 @@
record: "{{ source_instancename }}.src.9iron.club."
ttl: 300
value: [ "{{ inventory_hostname }}." ]
become: yes
tags: [ dns ]
- name: Assure Minecraft CNAME record
route53:
@ -50,16 +51,18 @@
record: "{{ mcname }}.mc.9iron.club."
ttl: 300
value: [ "{{ inventory_hostname }}." ]
become: yes
tags: [ dns ]
- name: Assure Minecraft SRV record
route53:
state: present
overwrite: yes
zoen: 9iron.club
zone: 9iron.club
type: SRV
record: "_minecraft._tcp.{{ mcname }}.mc.{{ zone }}."
ttl: 300
value: [ "1 10 {{ mcport }} {{ inventory_hostname }}." ]
become: yes
tags: [ dns ]
#- hosts: game2
# roles:

View File

@ -8,6 +8,8 @@
ipify_facts:
tags: [ always ]
roles:
- role: awscreds
tags: [ common, dns ]
- role: influxdb
tags: [ common, influxdb ]
- role: user