added playbook to manage aws route53 domains
This commit is contained in:
parent
db4a97cc35
commit
c9d3fa0397
26
dns.yml
Normal file
26
dns.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
# dns.yml
|
||||||
|
- name: Add A Records for thesatelliteoflove.com
|
||||||
|
hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
|
||||||
|
vars:
|
||||||
|
domain_name: thesatelliteoflove.com
|
||||||
|
dns_records:
|
||||||
|
- name: "pin"
|
||||||
|
ip: "152.53.36.98"
|
||||||
|
- name: "home"
|
||||||
|
ip: "152.53.36.98"
|
||||||
|
- name: "git"
|
||||||
|
ip: "152.53.36.98"
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Add A records for subdomains
|
||||||
|
amazon.aws.route53:
|
||||||
|
state: present
|
||||||
|
zone: "{{ domain_name }}"
|
||||||
|
record: "{{ item.name }}.{{ domain_name }}"
|
||||||
|
type: A
|
||||||
|
ttl: 300
|
||||||
|
value: "{{ item.ip }}"
|
||||||
|
loop: "{{ dns_records }}"
|
Loading…
Reference in New Issue
Block a user