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:
Jérémy Lecour 2018-09-20 12:13:13 +02:00 committed by Jérémy Lecour
parent fc12a5dfbb
commit 56af209fb2
1 changed files with 1 additions and 1 deletions

View File

@ -53,4 +53,4 @@
tags:
- elasticsearch
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