diff options
| author | Luke Hoersten <[email protected]> | 2024-02-04 20:27:19 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2024-02-04 20:27:19 -0600 |
| commit | 04edbf561c44e28753cbbaa3870b23b220cc644c (patch) | |
| tree | 66a1fc151e8036d6ee1d1de6401cfe9d619a82c1 /certbot-dns-cloudflare/tasks | |
| parent | e8be763403fb3d623b68ea6cb1781e61a72d28d4 (diff) | |
Tons of updates to fix migration to new server.
Diffstat (limited to 'certbot-dns-cloudflare/tasks')
| -rw-r--r-- | certbot-dns-cloudflare/tasks/main.yaml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/certbot-dns-cloudflare/tasks/main.yaml b/certbot-dns-cloudflare/tasks/main.yaml index 1ded6c9..99b18cc 100644 --- a/certbot-dns-cloudflare/tasks/main.yaml +++ b/certbot-dns-cloudflare/tasks/main.yaml @@ -13,6 +13,12 @@ owner: "root" group: "root" +- name: make renewal dir + become: yes + file: + path: "/etc/letsencrypt/renewal/" + state: "directory" + - name: configure renewal become: yes template: @@ -24,11 +30,11 @@ - name: check if cert exists become: yes - stat: path="/etc/letsencrypt/live/{{certbot_dns_cloudflare_domain}}/cert.pem" + stat: path="/etc/letsencrypt/live/{{certbot_dns_cloudflare_domain}}-0001/cert.pem" register: cert - name: run certbot become: yes - command: "certbot certonly -n --dns-cloudflare --dns-cloudflare-credentials /etc/letsencrypt/cred.conf -d {{certbot_dns_cloudflare_domain}}" + command: "certbot certonly -n --agree-tos --email {{certbot_dns_cloudflare_email}} --dns-cloudflare --dns-cloudflare-credentials /etc/letsencrypt/cred.conf -d {{certbot_dns_cloudflare_domain}} -d \"*.{{certbot_dns_cloudflare_domain}}\"" when: not cert.stat.exists changed_when: false |
