Skip to content

Commit 0425d5d

Browse files
committed
automatically determine 'certbot_expand'
1 parent 943abd8 commit 0425d5d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

defaults/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ certbot_auto_renew_hour: "3"
66
certbot_auto_renew_minute: "30"
77
certbot_auto_renew_options: "--quiet"
88

9-
certbot_expand: true
109
certbot_testmode: false
1110
certbot_hsts: false
1211

tasks/create-cert-standalone.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,6 @@
6060

6161
- name: Generate new certificate if one doesn't exist.
6262
command: "{{ certbot_create_command }}"
63+
vars:
64+
certbot_expand: letsencrypt_cert_domains_changed | default(false)
6365
when: not letsencrypt_cert.stat.exists or letsencrypt_cert_domains_changed | default(false)

tasks/create-cert-webroot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@
3232

3333
- name: Generate new certificate if one doesn't exist.
3434
command: "{{ certbot_create_command }}"
35+
vars:
36+
certbot_expand: letsencrypt_cert_domains_changed | default(false)
3537
when: not letsencrypt_cert.stat.exists or letsencrypt_cert_domains_changed | default(false)

0 commit comments

Comments
 (0)