Skip to content

Commit a8b71e2

Browse files
committed
Prevent httpd from dying on logrotate reloads
1 parent 1fa9828 commit a8b71e2

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
- name: Restart httpd
3+
ansible.builtin.systemd:
4+
name: httpd
5+
state: restarted
6+
tags:
7+
- role::ldap

ansible/roles/ldap/tasks/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,20 @@
2323
- Reload the firewall
2424
tags:
2525
- role::ldap
26+
27+
- name: Increase apache process limit
28+
ansible.builtin.copy:
29+
content: |
30+
<!-- Ansible managed -->
31+
<!-- See https://stackoverflow.com/questions/22576807/scoreboard-is-full-not-at-maxrequestworkers -->
32+
<IfModule mpm_event_module>
33+
ServerLimit 48
34+
</IfModule>
35+
dest: /etc/httpd/conf.modules.d/99-mpm-server-limit.conf
36+
owner: root
37+
group: root
38+
mode: "0444"
39+
notify:
40+
- Restart httpd
41+
tags:
42+
- role::ldap

0 commit comments

Comments
 (0)