Add possibility to change ulimit for Apache #117

Open
mtrossevin wants to merge 5 commits from mtrossevin/ansible-roles:apache_file_open into unstable
3 changed files with 15 additions and 0 deletions

View File

@ -13,6 +13,7 @@ The **patch** part changes incrementally at each release.
### Added
* varnish: variable for jail configuration
* apache: Add possibility to change ulimit for Apache
### Changed

View File

@ -14,6 +14,10 @@ apache_evolinux_default_ssl_key: /etc/ssl/private/ssl-cert-snakeoil.key
apache_serverstatus_suffix: ""
apache_serverstatus_suffix_file: "/etc/evolinux/apache_serverstatus_suffix"
# Change Apache's ulimit through APACHE_ULIMIT_MAX_FILES
apache_change_ulimit: True
Review

I'd rather find the current default value, set it as the default value in Ansible and remove the boolean.

I'd rather find the current default value, set it as the default value in Ansible and remove the boolean.
apache_ulimit_max: '65536'
apache_log2mail_include: True
apache_munin_include: True

View File

@ -137,6 +137,16 @@
tags:
- apache
- name: Add line in envvars for ulimit
lineinfile:
path: /etc/apache2/envvars
regexp: '^#?APACHE_ULIMIT_MAX_FILES='
line: "APACHE_ULIMIT_MAX_FILES='ulimit -n {{ apache_ulimit_max }}'"
when: apache_change_ulimit
notify: 'restart apache'
tags:
- apache
- include_role:
name: evolix/remount-usr
tags: