[fix] change result conditions (#6973)

This commit is contained in:
seowon 2020-12-31 00:15:49 +09:00 committed by GitHub
parent 398a995798
commit 3c1f84a9e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
with_items:
- "{{ node.split(',') | default(groups['kube-node']) }}"
register: result
failed_when: result.rc == 0 and not allow_ungraceful_removal
failed_when: result.rc != 0 and not allow_ungraceful_removal
delegate_to: "{{ groups['kube-master']|first }}"
run_once: true
ignore_errors: yes
@ -21,7 +21,7 @@
with_items:
- "{{ node.split(',') | default(groups['kube-node']) }}"
register: result
failed_when: result.rc == 0 and not allow_ungraceful_removal
failed_when: result.rc != 0 and not allow_ungraceful_removal
delegate_to: "{{ groups['kube-master']|first }}"
run_once: true
ignore_errors: yes