Commit 970e9bf5 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

add default false for force_ssl

parent 86b7acad
......@@ -42,7 +42,7 @@
when: "apache_vhosts[0].ssl_force | default(false) | bool"
- name: "run command to get certificate"
command: "certbot --apache certonly {{ certbot_ssl_dry_run }} --non-interactive --agree-tos --email {{ item.serveradmin }} -d {{ item.servername }}{%if item.serveralias is defined or item.certalias is defined %},{{ ssl_alias | join(',') }} {% if item.ssl_force %}--expand{%endif %} {% else %} {{ item.servername }} {% endif %}" # noqa 204
command: "certbot --apache certonly {{ certbot_ssl_dry_run }} --non-interactive --agree-tos --email {{ item.serveradmin }} -d {{ item.servername }}{%if item.serveralias is defined or item.certalias is defined %},{{ ssl_alias | join(',') }} {% if item.ssl_force | default(false) | bool %}--expand{%endif %} {% else %} {{ item.servername }} {% endif %}" # noqa 204
with_items: "{{ apache_vhosts }}"
become: true
when: "(apache_certbot and not letsencrypt_cert.stat.exists and item.ssl is defined and item.ssl | bool) or (item.ssl_force | default(false) | bool and (item.ssl_type is undefined or item.ssl_type == 'certbot'))"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment