Skip to content

Commit

Permalink
automatically determine 'certbot_expand'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoeze committed Jan 29, 2025
1 parent 943abd8 commit 0425d5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ certbot_auto_renew_hour: "3"
certbot_auto_renew_minute: "30"
certbot_auto_renew_options: "--quiet"

certbot_expand: true
certbot_testmode: false
certbot_hsts: false

Expand Down
2 changes: 2 additions & 0 deletions tasks/create-cert-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@

- name: Generate new certificate if one doesn't exist.
command: "{{ certbot_create_command }}"
vars:
certbot_expand: letsencrypt_cert_domains_changed | default(false)
when: not letsencrypt_cert.stat.exists or letsencrypt_cert_domains_changed | default(false)
2 changes: 2 additions & 0 deletions tasks/create-cert-webroot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@

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

0 comments on commit 0425d5d

Please sign in to comment.