This commit is contained in:
Faris AL-Otaibi 2024-07-23 20:01:36 +03:00
parent ec2ffe211f
commit 0940fcfa1f

View file

@ -1,27 +1,11 @@
# {{ ansible_managed }}
<IfModule mpm_{{ apache_mpm_module }}_module>
{% 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 %}
{% endfor %}
</IfModule>