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

add packages for centos8, add default '' to ssl_type check in ssl template

parent 26f9a7b6
......@@ -26,7 +26,7 @@
{% endif %}
{# block for setting sertificate for uib host #}
{% if vhost.ssl_type == 'uib' %}
{% if vhost.ssl_type | default('') == 'uib' %}
{# ssl config copied from letsencrypt options #}
SSLEngine on
......
......@@ -16,7 +16,5 @@ apache_ports_configuration_items:
- regexp: "^#?NameVirtualHost "
line: "NameVirtualHost {{ apache_listen_ip }}:{{ apache_listen_port }}"
certbot_packages:
- python2-certbot-apache
- certbot
- moreutils
certbot_packages: '{% if ansible_distribution_major_version == "7" %}["python2-certbot-apache", "certbot","moreutils"]{% elif ansible_distribution_major_version == "8" %}["certbot", "python3-certbot-apache" ,"mod_ssl"]{% else %}{% endif %}'
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