Skip to content
Snippets Groups Projects
Unverified Commit 3c1f84a9 authored by seowon's avatar seowon Committed by GitHub
Browse files

[fix] change result conditions (#6973)

parent 398a9957
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment