+include_recipe "ssl"
+
+package %w[
+ apache2
+ libwww-perl
+]
+
+%w[event itk prefork worker].each do |mpm|
+ next if mpm == node[:apache][:mpm]
+
+ apache_module "mpm_#{mpm}" do
+ action [:disable]
+ end
+end
+
+apache_module "mpm_#{node[:apache][:mpm]}" do
+ action [:enable]
+end
+
+if node[:lsb][:release].to_f >= 18.04
+ apache_module "http2"
+end