From b4f7f071c473be4754664355759d9b8cf20e0b10 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Mon, 21 Oct 2024 12:50:13 +0530 Subject: [PATCH] Update CNAME records in playbook --- service-provider-setup/setup-dns.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/service-provider-setup/setup-dns.yml b/service-provider-setup/setup-dns.yml index 3830dd5..38eb412 100644 --- a/service-provider-setup/setup-dns.yml +++ b/service-provider-setup/setup-dns.yml @@ -58,7 +58,7 @@ data: "{{ subdomain_cluster_control }}.{{ full_domain }}" domain: "{{ full_domain }}" type: CNAME - name: "{{ subdomain_prefix }}.{{ full_domain }}" + name: "{{ subdomain_prefix }}" ttl: 43200 - name: Create CNAME record for laconicd endpoint @@ -68,7 +68,7 @@ data: "{{ org_id }}-daemon.{{ full_domain }}" domain: "{{ full_domain }}" type: CNAME - name: "laconicd.{{ full_domain }}" + name: "laconicd" ttl: 43200 - name: Create CNAME record for backend @@ -78,7 +78,7 @@ data: "{{ org_id }}-daemon.{{ full_domain }}" domain: "{{ full_domain }}" type: CNAME - name: "{{ org_id }}-backend.{{ full_domain }}" + name: "{{ org_id }}-backend" ttl: 43200 - name: Create CNAME record for console @@ -88,17 +88,7 @@ data: "{{ org_id }}-daemon.{{ full_domain }}" domain: "{{ full_domain }}" type: CNAME - name: "{{ org_id }}-console.{{ full_domain }}" - ttl: 43200 - - - name: Create CNAME record for org and location - community.digitalocean.digital_ocean_domain_record: - state: present - oauth_token: "{{ do_api_token }}" - data: "{{ org_id }}-daemon.{{ full_domain }}" - domain: "{{ full_domain }}" - type: CNAME - name: "{{ subdomain_prefix }}" + name: "{{ org_id }}-console" ttl: 43200 - name: Create wildcard CNAME record for subdomain