From 344b79e97f2100bc15cf3441e6dcae44d2f3b5b4 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Wed, 17 Aug 2022 02:17:36 -0400 Subject: [PATCH] Add base domain to the wildcard certificate --- roles/proxy/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/proxy/tasks/main.yml b/roles/proxy/tasks/main.yml index 3022e1b..734fe68 100644 --- a/roles/proxy/tasks/main.yml +++ b/roles/proxy/tasks/main.yml @@ -78,7 +78,9 @@ --email "{{ proxy.dns_cloudflare.email }}" \ --dns-cloudflare \ --dns-cloudflare-credentials /root/.cloudflare.ini \ - -d "*.{{ item }}" {{ proxy.dns_cloudflare.opts | default("") }}' + -d "*.{{ item }}" \ + -d "{{ item }}" \ + {{ proxy.dns_cloudflare.opts | default("") }}' args: creates: "/etc/letsencrypt/live/{{ item }}/fullchain.pem" loop: "{{ proxy.dns_cloudflare.wildcard_domains }}"