elasticsearch: comment the Xlog:gc line instead of changing it completely
This commit is contained in:
parent
9f87049ee4
commit
2c079755e9
|
@ -25,6 +25,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
|
||||
### Fixed
|
||||
|
||||
* elasticsearch: comment the Xlog:gc line instead of changing it completely
|
||||
* nagios-nrpe: remount /usr **after** installing the packages
|
||||
* packweb-apache,nagios-nrpe: add missing task and config for PHP 8.2 container
|
||||
* potsfix: add missing `localhost.$mydomain` to mydestination
|
||||
|
|
|
@ -179,14 +179,11 @@
|
|||
tags:
|
||||
- config
|
||||
|
||||
- name: Disable garbage collector logs (JDK >= 9)
|
||||
ansible.builtin.lineinfile:
|
||||
- name: Disable garbage collector logs
|
||||
ansible.builtin.replace:
|
||||
dest: /etc/elasticsearch/jvm.options
|
||||
regexp: "Xlog:gc"
|
||||
line: "#9-:-Xlog:gc*,gc+age=trace,safepoint:file=/opt/my-app/gc.log:utctime,pid,tags:filecount=32,filesize=64m"
|
||||
owner: root
|
||||
group: elasticsearch
|
||||
mode: "0640"
|
||||
regexp: '^([^#]*-Xlog:gc.+)'
|
||||
replace: '#\1'
|
||||
tags:
|
||||
- config
|
||||
|
||||
|
|
Loading…
Reference in New Issue