Commit 73695296 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

Update certbot_ssl.yml

parent a66124e8
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
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 %}{% 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 %}{% endif %}" # noqa 204
with_items: "{{ apache_vhosts }}" with_items: "{{ apache_vhosts }}"
become: true 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'))" 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 == 'letsencrypt'))"
notify: restart apache notify: restart apache
- name: "delete temp file from server" - name: "delete temp file from server"
......
Supports Markdown
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