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,16 +25,17 @@
|
|||
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
|
||||
- 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
|
||||
|
||||
- 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
|
||||
- name: Copy Systemd File for Instance
|
||||
become: yes
|
||||
copy: src=systemd/elasticsearch_override.conf dest={{ sysd_config_file }} mode=0644 force=yes
|
||||
notify:
|
||||
- reload systemd configuration
|
||||
- restart elasticsearch
|
||||
|
||||
#Copy the logging.yml
|
||||
- name: Copy log4j2.properties File
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue