ansible/dns.yml

37 lines
841 B
YAML
Raw Normal View History

---
# 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"
- name: "social"
ip: "152.53.36.98"
- name: "auth"
ip: "152.53.36.98"
2024-10-28 22:17:52 +01:00
- name: "audio"
ip: "152.53.36.98"
2024-11-02 02:02:45 +01:00
- name: "books"
ip: "152.53.36.98"
2024-11-07 17:29:59 +01:00
- name: "paper"
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 }}"