diff options
author | 2025-06-09 21:06:43 +0200 | |
---|---|---|
committer | 2025-06-09 21:06:43 +0200 | |
commit | d6de4caf604e497bb5152e5e2a4063c88f97a585 (patch) | |
tree | 647f3a6ea8daf101fb040d41b2cc8d4b23447f6b /ansible | |
parent | Update Cloudflare API token for cert-manager (diff) |
Prevent httpd from dying on logrotate reloadsfix-httpd-dying
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/roles/ldap/handlers/main.yml | 7 | ||||
-rw-r--r-- | ansible/roles/ldap/tasks/main.yml | 17 |
2 files changed, 24 insertions, 0 deletions
diff --git a/ansible/roles/ldap/handlers/main.yml b/ansible/roles/ldap/handlers/main.yml new file mode 100644 index 0000000..f06b75c --- /dev/null +++ b/ansible/roles/ldap/handlers/main.yml @@ -0,0 +1,7 @@ +--- +- name: Restart httpd + ansible.builtin.systemd: + name: httpd + state: restarted + tags: + - role::ldap diff --git a/ansible/roles/ldap/tasks/main.yml b/ansible/roles/ldap/tasks/main.yml index 5e1c5c8..1a163dc 100644 --- a/ansible/roles/ldap/tasks/main.yml +++ b/ansible/roles/ldap/tasks/main.yml @@ -23,3 +23,20 @@ - Reload the firewall tags: - role::ldap + +- name: Increase apache process limit + ansible.builtin.copy: + content: | + <!-- Ansible managed --> + <!-- See https://stackoverflow.com/questions/22576807/scoreboard-is-full-not-at-maxrequestworkers --> + <IfModule mpm_event_module> + ServerLimit 48 + </IfModule> + dest: /etc/httpd/conf.modules.d/99-mpm-server-limit.conf + owner: root + group: root + mode: 0o444 + notify: + - Restart httpd + tags: + - role::ldap |