forked from evolix/ansible-roles
[Cleanup] Clean up elasticsearch role
Don't compare with empty string Explicitly checkout master branch of head repository. Space after variable name
This commit is contained in:
parent
26eec48954
commit
63a0894906
|
@ -16,7 +16,7 @@
|
||||||
tags:
|
tags:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
when:
|
when:
|
||||||
- elasticsearch_custom_datadir != ''
|
- elasticsearch_custom_datadir
|
||||||
- elasticsearch_custom_datadir != None
|
- elasticsearch_custom_datadir != None
|
||||||
|
|
||||||
- name: Datadir is moved to custom path
|
- name: Datadir is moved to custom path
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
tags:
|
tags:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
when:
|
when:
|
||||||
- elasticsearch_custom_datadir != ''
|
- elasticsearch_custom_datadir
|
||||||
- elasticsearch_custom_datadir != None
|
- elasticsearch_custom_datadir != None
|
||||||
- elasticsearch_custom_datadir != elasticsearch_current_real_datadir_test.stdout
|
- elasticsearch_custom_datadir != elasticsearch_current_real_datadir_test.stdout
|
||||||
- not elasticsearch_custom_datadir_test.stat.exists
|
- not elasticsearch_custom_datadir_test.stat.exists
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
repo: "https://github.com/mobz/elasticsearch-head.git"
|
repo: "https://github.com/mobz/elasticsearch-head.git"
|
||||||
dest: "{{ elasticsearch_plugin_head_clone_dir }}"
|
dest: "{{ elasticsearch_plugin_head_clone_dir }}"
|
||||||
clone: yes
|
clone: yes
|
||||||
|
version: master
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
|
|
@ -54,4 +54,4 @@
|
||||||
tags:
|
tags:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
when: elastic_stack_version is version('6', '>=')
|
when: elastic_stack_version is version('6', '>=')
|
||||||
when: (elasticsearch_custom_tmpdir != '' and elasticsearch_custom_tmpdir != None) or fstab_tmp_noexec.rc == 0
|
when: (elasticsearch_custom_tmpdir and elasticsearch_custom_tmpdir != None) or fstab_tmp_noexec.rc == 0
|
||||||
|
|
Loading…
Reference in a new issue