Set limitMEMLOCK for OS using systemd
This commit is contained in:
parent
ac9341617e
commit
b73cd06c14
3 changed files with 17 additions and 0 deletions
|
|
@ -24,6 +24,18 @@
|
|||
template: src=elasticsearch.j2 dest={{ default_file }} mode=0644 force=yes
|
||||
notify: restart elasticsearch
|
||||
|
||||
#Copy the systemd specific file if systemd is installed
|
||||
- name: Make sure destination dir exists
|
||||
file: path={{ sysd_config_file | dirname }} state=directory recurse=yes mode=0755
|
||||
|
||||
- name: Copy Systemd File for Instance
|
||||
become: yes
|
||||
copy: src=systemd/elasticsearch_override.conf dest={{ sysd_config_file }} mode=0644 force=yes
|
||||
when: use_system_d and m_lock_enabled
|
||||
notify:
|
||||
- reload systemd configuration
|
||||
- restart elasticsearch
|
||||
|
||||
#Copy the logging.yml
|
||||
- name: Copy log4j2.properties File
|
||||
become: yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue