From 1b3b9636b74d35e1e237f851f6af9d26db7a5567 Mon Sep 17 00:00:00 2001
From: Stefan Galinski <stefan@sgalinski.de>
Date: Thu, 1 Sep 2016 17:23:22 +0200
Subject: [PATCH] [TASK] Simplify the HTTP2 condition

---
 recipes/default.rb | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/recipes/default.rb b/recipes/default.rb
index c33513b..6be77a2 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -71,13 +71,7 @@ if node['platform_version'] == '16.04'
 	end
 
 	apache_module 'http2' do
-		enable true
-		only_if { node['typo3_site']['allow_http2'] }
-	end
-
-	apache_module 'http2' do
-		disable true
-		not_if { node['typo3_site']['allow_http2'] }
+		enable node['typo3_site']['allow_http2']
 	end
 else
 	include_recipe 'apache2::mod_php5'
-- 
GitLab