From aa8137311a3d19471b6aa28d2d0fad85eb12156c Mon Sep 17 00:00:00 2001 From: Adw8 Date: Mon, 14 Oct 2024 18:33:24 +0530 Subject: [PATCH] Add wildcard CNAME record for pwa --- service-provider-setup/setup-dns.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/service-provider-setup/setup-dns.yml b/service-provider-setup/setup-dns.yml index bf306cd..03f92b5 100644 --- a/service-provider-setup/setup-dns.yml +++ b/service-provider-setup/setup-dns.yml @@ -95,30 +95,28 @@ community.digitalocean.digital_ocean_domain_record: state: present oauth_token: "{{ do_api_token }}" - name: "{{ subdomain_cluster_control }}.{{ full_domain }}" - data: "{{ subdomain_cluster_control }}.{{ full_domain }}" + name: "*.{{ subdomain_prefix }}" + data: "{{ subdomain_prefix }}-cluster-control.{{ full_domain }}" domain: "{{ full_domain }}" type: CNAME - name: "*.{{ subdomain_prefix }}" ttl: 43200 - name: Create CNAME record for pwa community.digitalocean.digital_ocean_domain_record: state: present oauth_token: "{{ do_api_token }}" - data: "{{ subdomain_cluster_control }}.{{ full_domain }}" + name: "pwa" + data: "{{ subdomain_prefix }}-cluster-control.{{ full_domain }}" domain: "{{ full_domain }}" type: CNAME - name: "pwa" ttl: 43200 - name: Create wildcard CNAME record for pwa community.digitalocean.digital_ocean_domain_record: state: present oauth_token: "{{ do_api_token }}" - name: "{{ subdomain_cluster_control }}.{{ full_domain }}" - data: "{{ subdomain_cluster_control }}.{{ full_domain }}" + name: "*.pwa" + data: "{{ subdomain_prefix }}-cluster-control.{{ full_domain }}" domain: "{{ full_domain }}" type: CNAME - name: "*.pwa" - ttl: 43200 + ttl: 43200 \ No newline at end of file