elasticsearch: comment the Xlog:gc line instead of changing it completely

This commit is contained in:
Jérémy Lecour 2023-05-31 17:25:08 +02:00 committed by Jérémy Lecour
parent 9f87049ee4
commit 2c079755e9
2 changed files with 5 additions and 7 deletions

View File

@ -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

View File

@ -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