forked from evolix/ansible-roles
elasticsearch: fix condition for tmpdir
when a task has "failed_when: False" the "success" filter doesn't always return the correct value (depending on the version of Ansible).
This commit is contained in:
parent
fc12a5dfbb
commit
56af209fb2
|
@ -53,4 +53,4 @@
|
||||||
tags:
|
tags:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
when: elastic_stack_version | version_compare('6', '>=')
|
when: elastic_stack_version | version_compare('6', '>=')
|
||||||
when: (elasticsearch_custom_tmpdir != '' and elasticsearch_custom_tmpdir != None) or fstab_tmp_noexec | success
|
when: (elasticsearch_custom_tmpdir != '' and elasticsearch_custom_tmpdir != None) or fstab_tmp_noexec.rc == 0
|
||||||
|
|
Loading…
Reference in a new issue