ansible/playbooks/dns.yml

17 lines
364 B
YAML
Raw Normal View History

2020-08-01 16:25:56 -05:00
#!/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: 300
value: [ "{{ ipify_public_ip }}" ]
wait: yes
tags: [ common, dns ]