elasticsearch: tmpdir is created if tmp is noexec
This commit is contained in:
parent
64c11c1296
commit
cfd1e690fb
|
@ -4,5 +4,6 @@ elasticsearch_network_host: "[_site_, _local_]"
|
|||
elasticsearch_network_publish_host: "_site_"
|
||||
elasticsearch_custom_datadir: Null
|
||||
elasticsearch_custom_tmpdir: Null
|
||||
elasticsearch_default_tmpdir: /var/lib/elasticsearch/tmp
|
||||
elasticsearch_jvm_xms: 2g
|
||||
elasticsearch_jvm_xmx: 2g
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
changed_when: False
|
||||
|
||||
- block:
|
||||
- name: "Create {{ elasticsearch_custom_tmpdir }}"
|
||||
- name: "Create {{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
|
||||
file:
|
||||
path: "{{ elasticsearch_custom_tmpdir }}"
|
||||
path: "{{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
|
||||
owner: elasticsearch
|
||||
group: elasticsearch
|
||||
mode: 0755
|
||||
|
@ -20,7 +20,7 @@
|
|||
- name: change JVM tmpdir
|
||||
lineinfile:
|
||||
dest: /etc/elasticsearch/jvm.options
|
||||
line: "-Djava.io.tmpdir={{ elasticsearch_custom_tmpdir }}"
|
||||
line: "-Djava.io.tmpdir={{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
|
||||
regexp: "^-Djava.io.tmpdir="
|
||||
insertafter: "## JVM configuration"
|
||||
notify:
|
||||
|
|
Loading…
Reference in a new issue