Skip to content

Commit

Permalink
[fix] change result conditions (#6973)
Browse files Browse the repository at this point in the history
  • Loading branch information
yonwon01 authored Dec 30, 2020
1 parent 398a995 commit 3c1f84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/remove-node/pre-remove/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 comments on commit 3c1f84a

Please sign in to comment.