We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b72337a commit 2058be6Copy full SHA for 2058be6
1 file changed
tasks/certificate.yml
@@ -5,6 +5,5 @@
5
register: letsencrypt_cert
6
7
- name: Generate new certificate if one doesn't exist
8
- shell: "certbot certonly --nginx --email '{{ letsencrypt_email }}' --agree-tos -d '{{ domain_name }}' {% if certbot_nginx_cert_name %} --cert-name '{{ certbot_nginx_cert_name }}' {% endif %} {% if letsencrypt_staging %} --staging {% endif %}"
+ shell: "certbot certonly --nginx --email '{{ letsencrypt_email }}' --agree-tos -d '{{ domain_name }}' {% if certbot_nginx_cert_name is defined %} --cert-name '{{ certbot_nginx_cert_name }}' {% endif %} {% if letsencrypt_staging %} --staging {% endif %}"
9
when: not letsencrypt_cert.stat.exists
10
-
0 commit comments