ansible/playbooks/dns.yml
Salt 82c78e092e Increase TTLs on DNS records to 3600s (from 300s)
I'm fairly confident in the stability of my record sets now that I've done most of the experimentation
2020-08-27 17:40:53 -05:00

18 lines
383 B
YAML

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
- hosts: 9iron.club
tasks:
- name: Add machine to DNS zone
route53:
state: present
overwrite: yes
zone: 9iron.club
type: A
record: "{{ inventory_hostname }}."
ttl: 3600
value: [ "{{ ipify_public_ip }}" ]
wait: yes
become: yes
tags: [ common, dns ]