diff --git a/files/httpd/h2.conf.j2 b/files/httpd/h2.conf.j2 index fcb3e10c4b..2627ea8a32 100644 --- a/files/httpd/h2.conf.j2 +++ b/files/httpd/h2.conf.j2 @@ -1,3 +1 @@ -{% if ansible_distribution == 'Fedora' %} - Protocols h2 {% if not inventory_hostname.startswith('proxy') %} h2c {% endif %} http/1.1 -{% endif %} +Protocols h2 {% if not inventory_hostname.startswith('proxy') %} h2c {% endif %} http/1.1 diff --git a/roles/apache/tasks/main.yml b/roles/apache/tasks/main.yml index 06cc1e01fb..b98b4fd511 100644 --- a/roles/apache/tasks/main.yml +++ b/roles/apache/tasks/main.yml @@ -71,6 +71,7 @@ - name: add appserver h2.conf template: src="{{ files }}/httpd/h2.conf.j2" dest=/etc/httpd/conf.d/h2.conf + when: ansible_distribution == 'Fedora' notify: - reload apache tags: