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