Fix typo and bug with non letsencrypt certificate
This commit is contained in:
parent
067abe425b
commit
5db4e2664e
|
@ -25,3 +25,4 @@ listen_ipv4:
|
|||
|
||||
listen_ipv6:
|
||||
- "::"
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
shell: "certbot certonly --non-interactive --webroot --email {{ nginx_letsencrypt_email }} --agree-tos --webroot-path=/var/www/letsencrypt {% for domain in item.server_name %} -d {{ domain }} {% endfor %} --expand --rsa-key-size 4096;"
|
||||
when:
|
||||
- item.ssl
|
||||
- item.letsencrypt
|
||||
|
||||
- name: "Create certificate"
|
||||
shell: "certbot certonly --non-interactive --webroot --email {{ nginx_letsencrypt_email }} --agree-tos --webroot-path=/var/www/letsencrypt {% for domain in item.server_name %} -d {{ domain }} {% endfor %} --expand --rsa-key-size 4096;"
|
||||
|
|
|
@ -13,10 +13,10 @@ ssl_certificate_key {{ item.ssl_certificate_key }};
|
|||
{% endif %}
|
||||
|
||||
include /etc/nginx/conf.d/ssl.conf;
|
||||
{% if item.disable_ocsp is defined and item.disable_ocsp is True %}
|
||||
{% if item.disable_ocsp is defined and item.disable_ocsp == True %}
|
||||
include /etc/nginx/conf.d/ocsp.conf;
|
||||
{% endif %}
|
||||
{% if item.disable_hsts is defined and item.disable_hsts is True %}
|
||||
{% if item.disable_hsts is defined and item.disable_hsts == True %}
|
||||
include /etc/nginx/conf.d/hsts.conf;
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue