Add possibility to change ulimit for Apache #117
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
apache_ulimit_max: '65536'
|
||||
|
||||
apache_log2mail_include: True
|
||||
apache_munin_include: True
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue
I'd rather find the current default value, set it as the default value in Ansible and remove the boolean.