diff options
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 |