18 lines
378 B
YAML
18 lines
378 B
YAML
#!/usr/bin/ansible-playbook
|
|
# vim:ft=ansible:
|
|
|
|
- hosts: 9iron
|
|
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 ]
|