From ed3aea328b59493df4d600e6895a8f38220c5478 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Wed, 22 Nov 2017 18:15:16 +0000 Subject: [PATCH] Only put h2.conf on Fedora boxes Signed-off-by: Patrick Uiterwijk --- files/httpd/h2.conf.j2 | 4 +--- roles/apache/tasks/main.yml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) 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: