Create overriding systemd directory only if using systemd and memory lock is enabled
This commit is contained in:
parent
2142c6f8f9
commit
5994840c75
1 changed files with 10 additions and 9 deletions
|
|
@ -25,13 +25,14 @@
|
||||||
notify: restart elasticsearch
|
notify: restart elasticsearch
|
||||||
|
|
||||||
#Copy the systemd specific file if systemd is installed
|
#Copy the systemd specific file if systemd is installed
|
||||||
- name: Make sure destination dir exists
|
- when: use_system_d and m_lock_enabled
|
||||||
|
block:
|
||||||
|
- name: Make sure destination dir exists
|
||||||
file: path={{ sysd_config_file | dirname }} state=directory recurse=yes mode=0755
|
file: path={{ sysd_config_file | dirname }} state=directory recurse=yes mode=0755
|
||||||
|
|
||||||
- name: Copy Systemd File for Instance
|
- name: Copy Systemd File for Instance
|
||||||
become: yes
|
become: yes
|
||||||
copy: src=systemd/elasticsearch_override.conf dest={{ sysd_config_file }} mode=0644 force=yes
|
copy: src=systemd/elasticsearch_override.conf dest={{ sysd_config_file }} mode=0644 force=yes
|
||||||
when: use_system_d and m_lock_enabled
|
|
||||||
notify:
|
notify:
|
||||||
- reload systemd configuration
|
- reload systemd configuration
|
||||||
- restart elasticsearch
|
- restart elasticsearch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue