Fix conditional when checking Wazuh-APP version

This commit is contained in:
Jose M 2019-09-26 16:11:20 +02:00
parent 33a95a5c4a
commit 4c9ae0eee5

View File

@ -81,7 +81,9 @@
removes: /usr/share/kibana/plugins/wazuh/package.json
register: wazuh_app_verify
changed_when: false
failed_when: wazuh_app_verify.stderr | length > 0
failed_when:
- wazuh_app_verify.rc != 0
- wazuh_app_verify.rc != 1
- name: Removing old Wazuh-APP
command: /usr/share/kibana/bin/kibana-plugin --allow-root remove wazuh