Merge "ensure-zookeeper: better match return code"

This commit is contained in:
Zuul 2021-06-18 03:30:04 +00:00 committed by Gerrit Code Review
commit 859415c24b
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@
- name: Ensure Zookeeper not running
command: pkill -f zookeeper
ignore_errors: true
register: _pkill
# 0 is killed
# 1 is no process matched
# >1 is some sort of actual error
failed_when: _pkill.rc > 1
become: true
- name: Start Zookeeper