diff --git a/playbooks/dns.yml b/playbooks/dns.yml index 7874717..12cd8c2 100644 --- a/playbooks/dns.yml +++ b/playbooks/dns.yml @@ -13,4 +13,5 @@ ttl: 300 value: [ "{{ ipify_public_ip }}" ] wait: yes + become: yes tags: [ common, dns ] diff --git a/playbooks/gameservers.yml b/playbooks/gameservers.yml index 7e3c01b..9b003df 100644 --- a/playbooks/gameservers.yml +++ b/playbooks/gameservers.yml @@ -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: diff --git a/site.yml b/site.yml index 6f53ecd..f17d0cc 100755 --- a/site.yml +++ b/site.yml @@ -8,6 +8,8 @@ ipify_facts: tags: [ always ] roles: + - role: awscreds + tags: [ common, dns ] - role: influxdb tags: [ common, influxdb ] - role: user