From 0940fcfa1f899a74b2fdf453e8561bb62bd7483e Mon Sep 17 00:00:00 2001 From: Faris AL-Otaibi Date: Tue, 23 Jul 2024 20:01:36 +0300 Subject: [PATCH] Fix --- templates/mpm.conf.j2 | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/templates/mpm.conf.j2 b/templates/mpm.conf.j2 index 478cc9c..8f20787 100644 --- a/templates/mpm.conf.j2 +++ b/templates/mpm.conf.j2 @@ -1,27 +1,11 @@ # {{ ansible_managed }} + + {% for mpm in apache_mpm_config %} -ServerLimit {{ mpm.serverlimit }} -{% if ansible_distribution_major_version|int > 6 %} -MaxRequestWorkers {{ mpm.maxrequestworkers }} -{% else %} -MaxClients {{ mpm.maxclients }} -{% endif %} -StartServers {{ mpm.startservers }} -{% if ansible_distribution_major_version|int > 6 %} -MaxConnectionsPerChild {{ mpm.maxconnectionsperchild }} -{% else %} -MaxRequestsPerChild {{ mpm.maxconnectionsperchild }} -{% endif %} -{% if apache_mpm_module == 'worker' or apache_mpm_module == 'event' %} -ThreadLimit {{ mpm.threadlimit }} -ThreadsPerChild {{ mpm.threadsperchild }} -MinSpareThreads {{ mpm.minsparethreads }} -MaxSpareThreads {{ mpm.maxsparethreads }} -{% else %} -MinSpareServers {{ mpm.minspareservers }} -MaxSpareServers {{ mpm.maxspareservers }} -{% endif %} +{{ mpm.name }} {{ mpm.value }} -{% endfor %} \ No newline at end of file +{% endfor %} + + \ No newline at end of file