diff --git a/recipes/default.rb b/recipes/default.rb
index c33513ba5505cdbb70c6d18299faabd3b5561a4a..6be77a275a03fb26acecd295094299e81ac50a9e 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'