mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-20 11:00:23 +01:00
Fix
This commit is contained in:
parent
ec2ffe211f
commit
0940fcfa1f
1 changed files with 6 additions and 22 deletions
|
@ -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 %}
|
||||
|
||||
</IfModule>
|
Loading…
Reference in a new issue