Remove DNS role
This commit is contained in:
parent
894d6c8504
commit
837da68679
@ -1,19 +0,0 @@
|
|||||||
#!/usr/bin/ansible-playbook
|
|
||||||
# vim:ft=ansible:
|
|
||||||
---
|
|
||||||
- name: Add machine to DNS zone
|
|
||||||
block:
|
|
||||||
- name: Get public IP
|
|
||||||
ipify_facts:
|
|
||||||
- name: Register record in zone
|
|
||||||
route53:
|
|
||||||
state: present
|
|
||||||
overwrite: yes
|
|
||||||
zone: "{{ zone }}"
|
|
||||||
type: A
|
|
||||||
record: "{{ inventory_hostname_short }}.{{ zone }}."
|
|
||||||
ttl: 300
|
|
||||||
value:
|
|
||||||
- "{{ ipify_public_ip }}"
|
|
||||||
wait: yes
|
|
||||||
become: yes
|
|
Loading…
Reference in New Issue
Block a user